Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Encryption in Flex and Decryption in ColdFusion.   Message List  
Reply | Forward Message #95663 of 150922 |
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.






Wed Dec 5, 2007 10:20 pm

ivansebastia...
Offline Offline
Send Email Send Email

Forward
Message #95663 of 150922 |
Expand Messages Author Sort by Date

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 ...
ivansebastiansurya
ivansebastia...
Offline Send Email
Dec 5, 2007
10:20 pm

Which library? I've been able to successfully pass data back and forth between Flex and Crypto using AES. There are settings you need to specify (128 bit...
Jeffry Houser
reboog711
Offline Send Email
Dec 5, 2007
10:44 pm

Crypto? You mean ColdFusion? Seems like I can't decode the encoded string. Thanks. I use the library at http://crypto.hurlant.com/ Thanks, Ivan. ... Flex ... ...
ivansebastiansurya
ivansebastia...
Offline Send Email
Dec 5, 2007
11:07 pm

By Crypto I meant the AS3 library you link to, which is named "As3 Crypto". I'm pulled up my code. You should be able to use the CryptoDemo to create a Key in...
Jeffry Houser
reboog711
Offline Send Email
Dec 6, 2007
12:23 am

Hi, Thanks for your help, But I still got different result for encrypting in Flex using the crypto library: var key:ByteArray =...
ivansebastiansurya
ivansebastia...
Offline Send Email
Dec 6, 2007
12:51 am

And if I attempt to decrypt in ColdFusion what I've encrypted in Flex, I got: An error occurred while trying to encrypt or decrypt your input string:...
ivansebastiansurya
ivansebastia...
Offline Send Email
Dec 6, 2007
12:59 am

I've been told that sometimes this happens, but the data can still be decrypted correctly by the alternate source. ( I haven't experienced this myself, mind...
Jeffry Houser
reboog711
Offline Send Email
Dec 6, 2007
1:52 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help