Page 1 of 1

MD5 digest

Posted: Thu May 06, 2010 9:33 pm
by jwbuzz
I'm writing an app that communicates back to a webserver. I'm passing a request parameter that that is a string I build with number + timestamp + salt and then using md5 digest on it.

On the backend is a PHP application that I call the MD5 function on with the same string. The problem is I get a different value. Anyone know the behavior enough in Revolution to make any recommendations.

Re: MD5 digest

Posted: Fri May 07, 2010 12:41 am
by Mark
Dear jwbuss,

Does this help?

Code: Select all

get binarydecode("H*",md5digest("hello world"),myVar)
-- myVar now contains the same data as md5() on php
Best regards,

Mark

Re: MD5 digest

Posted: Fri May 07, 2010 3:35 pm
by jwbuzz
That's exactly what I needed. Thanks.

Re: MD5 digest

Posted: Fri May 07, 2010 4:11 pm
by FourthWorld
Brilliant work, Mark. How did you arrive at binaryEncode as the solution?