Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to decrypt an MD5 hash with the salt?

Tags:

md5

I need to decrypt this hashed password: e59dc19f2a3a569417fa183696f91604 and have the salt: 4067. Is it possible to recover the password with this information?

like image 205
Jacob Greenway Avatar asked Oct 23 '14 00:10

Jacob Greenway


3 Answers

You mentioned the word decrypt in your question, so I wanted to just mention firstly that hashes are not a means encryption. Encryption is a two way process of encryption and decryption. It's a way of securing data in transit or stasis.

Hashes are a one way algorithm and cannot be decrypted. However, there are means of finding out what was hashed. If you do some research into Rainbow tables, you'll see that you simply need to build a list of texts (with a salt, in your case) and their corresponding hash.

Hashes and Encryption are like bread and icecream. You can heat up bread and get toast, but you can't cool down toast to get bread. You can head up icecream to get cream, and you can cool it down again to get your icecream back.

like image 135
Reverend Tim Avatar answered Oct 06 '22 01:10

Reverend Tim


No, hash algorithms are one way.

You can hash the original password again and see if the hash result match the previous one.

like image 36
vtortola Avatar answered Oct 06 '22 03:10

vtortola


There is a way to decrypt this, but it is a long and laborious process. It's referred to as "brute-force", which means you would try a large (and by large, I mean significantly large dependent on the length of the password) number of inputs. Since the hash function is a one-way function that produces a non-random result, you will always map an input to the same output. So by using "brute-force", you're literally trying every possible combination and seeing if the hash produced is equal to the hash stored on the system (since you already know the salt). There are tools that do this such as John the Ripper (available on Kali Linux) but again, dependent on your computational power, it can take awhile.

like image 26
RockyEEKlvn Avatar answered Oct 06 '22 02:10

RockyEEKlvn