-3

I know that there is some case 2 different strings can have same MD5 hash but when I try with PHP it still become 2 different hash. So is there any string that have same MD5 hash in PHP if I use hash('md5', $blablabla)?

3

1 Answer 1

0

It is not that simple.

Indeed MD5 is considered as weak today and it is possible to find a collision (another input giving the same hash) under a minute.

Regardless that you have to compute the inputs, just guessing won't work. MD5 produces 128 bit output, so with random guessing will find collision with probability 1/(2^128) (almost impossible)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.