Click here to Skip to main content
15,911,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to decrypt the encrypted MD5 password stored in database without using password salt value
Posted

Hi,

MD5 can not be decrypted. it's irreversible. If you need to match your password then you need to encrypt user entered password and match encrypted data with database data(it's already encrypted).

Hope this helps you,
Thanks
-Amit Gajjar
 
Share this answer
 
Hash functions are meant to be unidirectional functions. But they can be reverted using dictionary methods or rainbow tables[^]. The 128 bit MD5 is more likely to be "decrypted" as the 16 bit SHA1.
But the question is rather what your purpose is.
A) Crack something - we won't help!
B) Add password recovery functionality to your site. Than use random temporary password pattern.
C) If you really need revertible password. Never store your passwords in plain text. And don't use encryption when the decryption key is in the code or near it. I can imagine only one somehow safe method: create a certificate and store it in the application pool user's profile. Use that certificate to encrypt and decrypt the password. You can use also external cryptic device to store the certificate, thus only the one who has physical access to the server could ever get it.
 
Share this answer
 
v2
and if i use SHA1 instead of MD5???
 
Share this answer
 
Comments
Zoltán Zörgő 4-Sep-12 4:33am    
This is a comment, not a solution!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900