php - disagreeing md5 hashes of same string, with example -


this getting me crazy, md5's don't agree. have string:

the combinations generator tool allows create series of combinations selecting related attributes. example, if you're selling t-shirts in 3 different sizes , 2 different colors, generator create 6 combinations you.

when hash on computer using md5 function (with php 5.5.0) produces following hash: 422f3f656e1a5f95e8b5cf7565d815b5

http://www.miraclesalad.com/webtools/md5.php agrees computer's result.

http://www.md5.cz/ disagrees both computer , miraclesalad.

this string/md5 pair computed computer gives same result md5.cz.

i read encoding issues (although string doesn't contain non ascii characters), tried following code on computer:

<?php  $str = "the combinations generator tool allows create series of combinations selecting related attributes. example, if you're selling t-shirts in 3 different sizes , 2 different colors, generator create 6 combinations you.";  echo "$str<br/>"; echo md5($str)."<br/>"; echo md5(utf8_encode($str))."<br/>"; echo md5(utf8_decode($str))."<br/>";   die(); 

the output is:

the combinations generator tool allows create series of combinations selecting related attributes. example, if you're selling t-shirts in 3 different sizes , 2 different colors, generator create 6 combinations you.

422f3f656e1a5f95e8b5cf7565d815b5

422f3f656e1a5f95e8b5cf7565d815b5

422f3f656e1a5f95e8b5cf7565d815b5

so not utf8.

any idea what's happening?

my best guess has ' mark in word "you're" , character encodings. if remove quote both sites report same md5.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -