Encyption Problem

2007-06-03 Thread Robert Rawlins - Think Blue
Hello Guys, I'm having trouble working with encrypt() and decrypt(). I've generated my own key and I'm trying to use AES encryption on a simple 'hello world' string, see my code below. cfset myKey = ToBase64(BinaryDecode(12345678901234567890123456789012, Hex)) / cfset myString = Hello

Re: Encyption Problem

2007-06-03 Thread J.J. Merrick
It looks like you are not decrypting an encrypted string... cfset decrypted = Decrypt(myString, myKey, AES) / would need to be cfset decrypted = Decrypt(encrypted, myKey, AES) / or I may just be missing something else at first glance also. J.J. On 6/3/07, Robert Rawlins - Think Blue

Re: Encyption Problem

2007-06-03 Thread robert . rawlins
Thanks JJ, You were actualy pretty much spot on, I wasnt thinking straight and was trying to decrypt the version of my string that wasnt encrypted. Also, I need to add the last parameter into the en/decrypt which was 'HEX' it all works an absolute charm now. Thanks bud, Rob It looks like you