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

Reply via email to