Solved

Encrypt and Decrpyt Flash Video in Progressive Download

Posted on 2008-10-02
7
1,058 Views
Last Modified: 2013-11-11
Right now we're paying limelight over $800/mo. to host our flash videos which our users have access to via our website for a monthly fee (these are medical training videos...). I HATE that we have to pay for RTMP hosting to get a 'secure' method of delivering the videos.

Question is: Is it possible to ENCRYPT your FLV files that reside on a regular HTTP web host for progressive download (like Mediatemple) and then DECRYPT the files in the PLAYER? via java or actionscript?
0
Comment
Question by:jono55
7 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 84 total points
ID: 22625163
I don't think you can encrypt/decrypt FLV file...  

CyanBlue
0
 
LVL 2

Assisted Solution

by:DavidESL
DavidESL earned 83 total points
ID: 22625292
Unfortunately Adobe's native encryption / rights managment feature requires the use of a dedicated Flash Media Rights Management Server installation to encrypt content and handle authorisation and playback policy i.e. content expiry or online/offline usage. once encrypted the content could be hosted anywhere but you would need to have an FMRMS instance running to make it playable. This also requires the use of a dedicated adobe air application or the use of Adobe Media Player.

I'm not too familiar with the use of Actionscript to facilitate decryption of a 3rd party encyption method so I can't comment on that.
0
 

Assisted Solution

by:TroyWorks
TroyWorks earned 83 total points
ID: 22635380
Generally FLV is not something you can encrypt or decrypt.

However it may be possible to do a few things. One if the FLV's are small (e.g. 15 minutes) is to embed them into a swf, and then use actionscript inside to poll for permission to play eg.

function onEnterFrame():void{
 if(iAmPermittedToPlay){
visibile = true;

}else{
 visibile = false;
stop();
 }
}

You can encrypt something using ByteArray but this complicates production and consumption of FLV's ...it's not good for clients either as a large video would have to be completely downloaded prior to decryption, and it might be large and take a long time.

Lastly you might be able to use PHP to stream, and just manage access via a session.
http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:jono55
ID: 23010378
Anyone want to take another stab at this before i close the question? So far there hasn't been a solution...
0
 

Expert Comment

by:TroyWorks
ID: 23011406
As mentioned prior, you can encrypt the FLV via byte array in AS3. So yes it's possible.
You could do the same thing via Java, and playing back via a java applet.

However for large files this will take a long time to decrypt, creating a several minute lag before the user can start playing them back.
0
 

Author Comment

by:jono55
ID: 25958096
Yeah... that's not gonna work... taking a "long time to decrypt" translates to pissed off users ;)

thanks anyways people. but, the answer really is NO... can't be done effectively.

0
 

Author Closing Comment

by:jono55
ID: 31502407
The answer was mostly "NO"... other's posted pseudo solutions that weren't actually helpful... but at least they were accurate...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now