Wednesday, 15 June 2011

actionscript 3 - high performance encryption in adobe air / flash -


project while searching for class / function related to encryption in Action Script / Air / Flash.

This provides an option v. Good choice, but I'm a little worried about what it means to present numbers when they are used to decrypt a local media file when it is chosen about the choice.

I'm looking for security vs. performance balance

For video / music , decode it faster So that the player uses Run it easily - which is depending on the format , but in all cases delay waiting to decode the whole file is less than.

The hardest part comes from using it for flash apps also because afaik do not wait to do anything Unless this assumption is incorrect, this is the place where as3crypto page looks the best performance algorithm in the list very slow i.e. 1.5 MB x seconds, to understand the meaning of 20 seconds 30 MB flash app for .

The main question is with me:

  • Is there any other other libraries with high performance? Can anything happen in Adobe Air?
  • For videos / songs , what would be a good number of MB x seconds for to be playable
  • Totally waiting until a flash app is loaded before it runs anything?

I'm curious what encryption you are using symmetric or asymmetric crypto? In the case of asymmetrics, try switching to symmetrical.

In the case of symmetry, use a stream cipher (RC4, or other flavor, Google for the name only), as the name indicates that you can encrypt / decrypt in streams This caters to your needs, as far as I am reminded that the RC 4 gives the best performance of most stream ciphers (still used in WEP and WPA1)

Another option In ECB (Electronic Code Book) mode Using Odk is used to encrypt each block of I 64/128/192/256 bits / decrypt, so it makes you able to partially encrypt / decrypt. Note that ECB mode is less secure than normal CBC (chain block cipher) mode, but here you can completely encrypt / decrypt content.

BTW, note that I can not give you any information on the performance of these algorithms, but I think you can benchmark it.


No comments:

Post a Comment