Possible Duplicate:
Is it possible to decrypt md5 hashes?
I do this in Ruby:
Digest::MD5.hexdigest("Jose")
and get "70483b6e100c9cebbffcdc62dea07eda"
But, how do I decrypt it back to "Jose"?
MD5 is a hashing algorithm, you can not easily decrypt the output back to the original (and this is exactly why we use hashing algorithms).
A common example is passwords. Instead of storing a password in your database, you generate a MD5 hash of the original password and store it. If one day someone steals your database it's harder for them to figure out the real passwords, as they can not be directly decrypted.
But when you're trying to login a user, he's going to type the real password, you will then run the MD5 algorithm again and compare the hash with the one you have stored, if they're the same then the user possibly typed the correct password.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With