I’m trying to put together an example of encrypting data with Flash before storing in the Shared Object.. but have run into a little trouble with ActionCrypt. Basically what I’m seeing is that once the data is encrypted it can be de-crypted with ANY key.. not good. Read about it here: http://sourceforge.net/forum/forum.php?thread_id=859298&forum_id=273562
Another user has confirmed it, and at first look it appears that the wrong number of parameters are being sent into the methods.
If you’ve successfully implemented a system that encrypts the data before storing to the LSO please let me know, or better yet write a tutorial on how you did it. That would be groovy.
19 Jan 2004 at 06:27 am | #
Maybe this'll help:
http://www.flashcomponents.net/component.cfm?nav=2&id=373
The guy has an MD5 encryption algo in buried in there.
23 Jan 2004 at 03:12 am | #
This was an error on my part with the examples provided. The reason has to do with actioncrypt_generic_init() takes only 3 arguments -- key, key length and IV (which is moot for the ECB mode and is unimplemented as yet). So my examples were incorrect.
Simply call actioncrypt_generic_init() with only key and key length. This should fix your problem.