Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decrypt the encrypted password in md5()? [duplicate]

Tags:

mysql

hash

md5

Possible Duplicate:
Is it possible to decrypt md5 hashes?

I have encrypt the password using the MySQL function md5(),

I need to decrypt the password,

Any one can help.

Thanks.

like image 791
Manikandan Thangaraj Avatar asked Aug 10 '11 18:08

Manikandan Thangaraj


2 Answers

MD5() generates a hash, not an encrypted string. Thus you can't decrypt it in principle. But studies shown that MD5 is hackable, but it seems too complicated to study.
From "MD5 considered harmful today" @ http://www.win.tue.nl/hashclash/rogue-ca/:

The cryptographic operation that uses a private key to sign data does not deal directly with the data itself, but with a purportedly unique representation of this data, that has a predetermined fixed length, is short and therefore convenient to work with. This can be compared to a fingerprint as a purportedly unique, short and convenient representation of a human being. The process of creating such short representations of data is called "hashing". Unfortunately, because of the fixed length of the hash, there must exist pairs of different inputs that yield the same hash value. Good hash functions, however, have the property that finding such pairs is extremely difficult, even though they are guaranteed to exist. This is precisely where MD5 has a crucial weakness.

like image 161
Dor Avatar answered Oct 28 '22 02:10

Dor


MD5 is not encryption, it is a one-way hash. This means that there is no way of going back to the original password given the hashvalue (other than brute-force or a rainbow table attack).

There is a longer, very good explanation, in this similar question and answer.

like image 34
driis Avatar answered Oct 28 '22 03:10

driis