View Full Version : Javascript MD5
lorren.biffin
July 16th, 2007, 02:46 PM
Does anybody know if the MD5 Hashes produced by the script on this page:
http://www.webtoolkit.info/javascript-md5.html
Would match the MD5 Hashes produced by a PHP script?
Also, there are some others on that site, such as a sha1 hash. How about those?
irrationalistic
July 16th, 2007, 03:15 PM
Well, there is the option of echoing a PHP md5 on the same word that you run through a javascript md5 to see if they compare...
If you need a quick and easy web server, take a look at XAMPP. Installing this app will set you up with MySQL, PHP, and Apache web server all quick-and-easy like...
eirche
July 16th, 2007, 05:00 PM
md5 is md5, it's independent of javascript or php or whatever. if they differ, they only differ in letter case or text/binary form.
wouldn't it be easier if you just try a few example?
google "javascript md5", first result, that one works
lorren.biffin
July 16th, 2007, 07:15 PM
md5 is md5, it's independent of javascript or php or whatever. if they differ, they only differ in letter case or text/binary form.
wouldn't it be easier if you just try a few example?
google "javascript md5", first result, that one works
Well, yea, I'm aware that MD5 Hashes are indipendant, but that being a custom built MD5 emulation, I was wondering if it was emulated well enough not to be error prone.
And yes, my tests have worked out fine, I'm just a bit skiddish because, as I said, it's a custom built has emulator.
Well, there is the option of echoing a PHP md5 on the same word that you run through a javascript md5 to see if they compare...
If you need a quick and easy web server, take a look at XAMPP. Installing this app will set you up with MySQL, PHP, and Apache web server all quick-and-easy like...
They have compared as matches so far, but as said above I'm hoping not to find one of the few cases in which they don't match, so I guess my question is more "Is the MD5 emulator in at the link provided a comparable version of MD5? Is there a way to check for a definite answer?"
And yes, I already do use a Xampp installation for my testing server. I'm not trying to find alternatives to server side technologies, just building up my client side knowledge/libraries.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.