Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 C# C#4.0
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 8-Aug-12 22:11pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Pooyan Behroozfar at 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 at 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 at 15-Aug-12 0:05am
Thanks a lot my friend. could you help me on AES? do you have some reference?
MarqW at 15-Aug-12 2:41am 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)

  Print Answers RSS
0 OriginalGriff 650
1 Maciej Los 525
2 Suvendu Shekhar Giri 229
3 Sascha Lefévre 229
4 Richard Deeming 195
0 Sergey Alexandrovich Kryukov 9,693
1 OriginalGriff 9,185
2 Peter Leow 5,112
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,876

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 13 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100