Hi there,

Has anyone attempted to encode some string in Flex and decode it in 
COldFusion?
I've attempted to encode the string using the library in
http://crypto.hurlant.com/
as follows:
var key:ByteArray = Hex.toArray(model.hashKey); // some key
var cipher:ICipher = Crypto.getCipher("aes", key);
var rawData:ByteArray = Hex.toArray(dataToEncrypt);
I then send the encrypted data as a string (Hex.fromArray
(encryptedByteArray).

I then try to decrypt it in ColdFusion, using:
decrypted=decrypt(arguments.xmlString, 
application.hashkey, "AES", "Hex");

, but it doesn't seem to work.

If anyone can help me out, that would be greatly appreciated.
Thanks,

Ivan.



Reply via email to