Question
Decryption - Arrgghh!
I'm having some difficulty trying to decrypt some passwords to move from one application to another [using different encryption] ... can anyone help with this
<cfscript>
rc4key = '823hjdFD00fQFSDFJweru87fsj34FS'; // plain text encryption key
passhex = '668413106F51AB'; // hex encoded password [should return test123]
EncryptedPassword = ToBase64(BinaryDecode(passhex, "Hex"));
writeoutput(EncryptedPassword); // returns ZoQTEG9Rqw== which is base64 ?!?!?
DecryptedPassword = Decrypt( EncryptedPassword, rc4key, 'RC4','Hex'); //throws an error
writeoutput(decrypted);
</cfscript>
And the error I get is:
An error occurred while trying to encrypt or decrypt your input string: '' Can not decode string "823hjdFD00fQFSDFJweru87fsj34FS"..
I just don't know what is not happening here, I've tested the key and password at http://crypto.hurlant.com/demo/ and gotten what I expect are correct results.... see attached.....
can anyone help?
-sean
