Possible duplicate:
Will the output of the MD5 hash function be the same in all programming languages?
Hello,
I have a problem with md5 hashing. Users can upload picures profiles to my project. I am using md5 for the name of the profile name. But there is something interesting. I haveh the value with both the test page on my server and with md5, encrypting sites with the same result. When I use this encryption to rename an image, it creates something else. It creates various value for image processing file.
Do you have any ideas?
This is my check script:
<?php echo md5('funky'); ?>
It outputs below code on my server as well as on md5encrypter.com:
6b818a3a6bf1234ed24c940021922b63
But it does manipulations with images below the code on my file. I do not know what it is:
d41d8cd98f00b204e9800998ecf8427e
Script for sql query. $ userId comes from entering userId:
$sql = mysql_query("SELECT username FROM users WHERE userId='$userId'"); while($row=mysql_fetch_assoc($sql)){ $username=$row['username']; }
Kemal source share