I’m working on an Windows application(created in .NET) which one of its functions is to play local FLVs using SWF components.
Now I need to create an encryption application to make sure those FLVs cannot be played freely, only the SWF player will know how to decrypt that file(using a key received from .NET app).
I was thinking of creating an Air app to encode my flvs (maybe ByteArray class?), using some algorithm to shuffle/unshuffle characters based in a key string.
My main need is how to encode/decode a file using Air/Flash.
I tried some times, just trying to load a FLV, convert to ByteArray, then save the new FLV, but this new FLV won’t play. Opening into Notepad++, I noticed the file have a few characters before it’s FLV header.
Anyone knows how to do that correctly? Thanks!
Here is a example of what I achieved throught my experiences and googling. Works perfectly.
Using ROT128 to encrypt a file, more info here.