Click here to Skip to main content
15,885,078 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends. i encrypted some passwords with MD5CryptoServiceProvider and stored in database. how can i decrypt them and show the original script?
Thank in advanced.
Posted

1 solution

You can't. MD5 is a hashing function, which are (generally) one-way. If you want to encrypt and decrypt, you'll want to look at using something like AES.
 
Share this answer
 
Comments
Pooyan Behroozfar 14-Aug-12 1:27am    
i have saved a lot of passwords that encrypted and saved in my database. when the user's forget their passwords i want to show that. what can i do?
MarqW 14-Aug-12 2:35am    
Most systems never let you actually view the old/current password, they actually just let you set a new one. Usually you'll see an option like "Reset Password", you'll see these never ask for the old password, only a new one, and is usually done by an administrator (to prevent any user resetting any other user's password and thus gaining access).

Hope that helps, if so, please accept and rate; Thanks
Pooyan Behroozfar 15-Aug-12 0:05am    
Thanks a lot my friend. could you help me on AES? do you have some reference?
MarqW 15-Aug-12 2:41am    
http://www.codeproject.com/Articles/165844/WCF-Client-Server-Application-with-Custom-Authenti has some code showing you how to use System.Security.Cryptography.AesCryptoServiceProvider

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