When looking for encryption related classes/functions in action script / air / flash, I saw the as3crypto project.
This one provides a v. nice set of options, but I am a bit concerned on what the numbers presented means when these are used to decrypt a local media file when its selected about to be played.
I am looking for security vs. performance balance.
For video/music, it needs to decode at a fast enough pace so the player plays it smoothly - which is something that depends on the format used, but is in all cases less than the delay of having to wait to decode the whole file.
The hardest part comes from having to use it for flash apps as well, since afaik it needs to wait for all of it to do anything. Unless this assumption is wrong, this is where the best performance algorithm in the list in the as3crypto page seems too slow i.e. at 1.5 MB x sec, it would take 20 secs to decipher a 30 MB flash app.
The main questions I have on this are:
- Are there any other libraries with higher performance? Anything in adobe air maybe?
- For videos/songs, what would be a good number of MB x sec for it to be playable?
- Does flash waits until loading completely a flash app before running anything of it?