I need a source code of md5 function written in php. (Not C, really on pure php) Where I can get this? Thanks.
I need it to make some changes to the algorithm.
I need a source code of md5 function written in php. (Not C, really on pure php) Where I can get this? Thanks.
I need it to make some changes to the algorithm.
You can write your own based on this md5 algorithm as pseudo code.
But if the function md5()
is in C it's because it will compute faster than the same algorithm in PHP. If you just want to understand how MD5 is calculated then just look at the algorithm.
Or you could use this implementation done by a SO member.
On the same topic :