Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hi All,

I have used memebership in my database,and in aspnet_membership table the password is saved in encrypted format ,now i want to provide forgot password option to user

how can i get the decrypted original password from database

can anybody pls help me its urgent..
Thanks in advance
Posted
Comments
[no name] 8-Apr-13 8:59am    
No.... it's not urgent at all. What makes you think that the password could be decrypted? Besides that, you have not said what was used to encrypt the password? You would the same algorithm to decrypt it. Only decrypting instead of encrypting.
bbirajdar 8-Apr-13 9:29am    
In that case why are you encrypting it.. Decrypting a password totally fails what is it made for ... Provide the user with a password reset link instead

First of all, get rid of such an unsafe schema where you can encrypt a password. In any decent authentication model, a password cannot be "decrypted"; this is never needed.

Surprised? Please see my past answers for further detail:
storing password value int sql server with secure way[^],
Decryption of Encrypted Password[^],
i already encrypt my password but when i log in it gives me an error. how can decrypte it[^].

—SA
 
Share this answer
 
If you have used any of the "standard" tools for encryption then they are specifically designed to prevent decryption - you would be better off offering a replace-password option with (encrypted) security questions to validate.

Have a look at the discussions here http://stackoverflow.com/questions/173329/how-to-decrypt-a-password-from-sql-server[^]
 
Share this answer
 

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