1) The salt is specified in the code snippet...
salt = BinaryDecode("0000000000000000","hex");
2) PBEWithMD5AndDES with iterations set to 1...CF8:
encryptedString = bx0cLGoH6zi5rBe+xmeMO0ZLvzoQDRDqOBD:
encryptedString = 20KN02M0pj/dbS1EpQDSWS4iSqCNSPnW
3) Using DESEDE...CF8: encryptedString = c9kml4jywb8d4U
+i27mCLl7OJZJ017dcOBD: encryptedString = c9kml4jywb8d4U
+i27mCLl7OJZJ017dc
So DESEDE works fine.....
On Dec 7, 1:48 pm, Alex Skinner <[email protected]> wrote:
> Please provide
>
> 1. The value of salt on both platforms
>
> 2. Please give us the output on both where iterations = 1
>
> 3. Please give us a test case with alternate encoding and algorithms
>
> This will allow us to isolate whether these differences are occurring
> whether it is purely the algorithm or something else
>
> Thanks
>
> Alex
>
> On 7 December 2011 12:56, Loz <[email protected]> wrote:
>
>
>
>
>
>
>
>
>
> > 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
>
> --
> Alex Skinner
> Managing Director
> Pixl8 Interactive
>
> Tel: +448452600726
> Email: [email protected]
> Web: pixl8.co.uk
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en