Solved

Javascript md5 compatible with PHP md5?

Posted on 2003-12-06
3
1,299 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
Comment Utility
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
Comment Utility
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
Comment Utility
<shrugs> like i said, assuming it fully complies to the md5 spec, you shoulden't have any problems.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now