0

I have stored a password in database using md5. I wanted to retrieve the original password from the md5 value of password.Can anyone tell how to retrieve the original password from the md5 value.?

2 Answers2

0

You can't, Md5 is irreversible.

Ralph Melhem
  • 767
  • 5
  • 12
0

No way (almost). This is what md5 is designed for (although it has some weakness, better in this matter are the algorithms of the sha family, and in there sha2 and sha3). The basic idea of any cryptograhpic hash is to create results such that for different inputs the hash value differs with high probability, but reconstructing the original input from the hash is as difficult as possible.

There are collision attacks known to md5, but you cannot be sure to get the original password back, if you succeed, only an equivalent one in the sense that both produce the same hash. I do not assume that you want to try doing so, though...

Aconcagua
  • 24,880
  • 4
  • 34
  • 59