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.
MD5 digest
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: MD5 digest
Dear jwbuss,
Does this help?
Best regards,
Mark
Does this help?
Code: Select all
get binarydecode("H*",md5digest("hello world"),myVar)
-- myVar now contains the same data as md5() on php
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: MD5 digest
That's exactly what I needed. Thanks.
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: MD5 digest
Brilliant work, Mark. How did you arrive at binaryEncode as the solution?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn