Hi,
I am almost through converting our CF8 client facing applications to
use OBD 1.5 (we will get to 2.0 as soon as this is on its feet!)
I am seeing inconsistent encrypt results when i compare the CF8 and
OBD results from the following code:
<cfscript>
stringToEncrypt = "HereIsATestString";
algorithm = "PBEWithMD5AndDES";
encoding = "base64";
iterations = 592;
salt = BinaryDecode("0000000000000000","hex");
passPhrase = "18065E360D64BCC0551AD5C06C3C3DA9";
</cfscript>
<cfset encString = Encrypt(variables.stringToEncrypt,
variables.passPhrase, variables.algorithm, variables.encoding,
variables.salt, variables.iterations)>
<cfoutput>encryptedString = #variables.encString#</cfoutput><br/>
On CF8: encryptedString = IikBTt8qSAKXhJr/1rRZZ4JNg68+K1HU
On OBD: encryptedString = 4esc4qAmQVAXFS7SgWCQW5Ve1WeXn+PK
The CF8 output gives the same output as a separate Java Applet I use
that runs the same encryption algorithm.
Any ideas why OBD output is different from CF8 and the Java Applet?
This is the last bit of the puzzle to my migration!
Cheers
Lawrence
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en