Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Javascript md5 compatible with PHP md5?

Posted on 2003-12-06
3
Medium Priority
?
1,344 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
m0nk3y earned 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

610 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