Since PHP has loose type comparison, we have:
php -r 'var_dump("1234e03"=="1234000");'
bool(true)
And since MD5 hashs are often reprensented as hexa string like 713f44b3d2c680df02eb5a0bde86fcd7
Are there two already known values that make a MD5 collison for PHP loose type comparison like md5($value1) == md5($value2)
?
With the snippet
time crunch 1 6|pv|php -r '$x=fopen("php://stdin","r");while ($l=trim(fgets($x))) {if (is_numeric(md5($l))) { echo "$l\t".md5($l)."\n"; exit; } }'
I found that ecrbx
yields 0310763137713908293306e502423361
which is a number in scientific notation. So I guess such collisions could be easier to do than plain simple collisions, but I don't know any example.
The same question would apply for other hash functions, like SHA1, SHA256, etc but would probably be harder to answer
===
instead.