Solved

Javascript md5 compatible with PHP md5?

Posted on 2003-12-06
3
1,309 Views
Last Modified: 2012-06-27
I was just wondering if the javascript implementation of md5 (in the md5.js file) is compatible with the md5() function in PHP.
0
Comment
Question by:medium_grade
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
m0nk3y earned 50 total points
ID: 9890813
md5 is completely independant of the underlying system. It's implementaition varies from platform to platform, but essentially it's a standard. It's like comparing mac tcp/ip and windows tcp/ip. They're completely different pacages, but what they do is exactly the same. So yes, js and php md5 (lol assuming everything is working properly) should work nicely together.
0
 

Author Comment

by:medium_grade
ID: 9894203
I know that the algorithm SHOULD be the same, but I remember hearing that Java's implementation of md5 is incompatible with PHP's md5. I wanted to make sure that sure wasn't the case with one in md5.js.

In any event, thank you for your answer.
0
 
LVL 1

Expert Comment

by:m0nk3y
ID: 9894343
<shrugs> like i said, assuming it fully complies to the md5 spec, you shoulden't have any problems.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question