Hi All
I need the whenever user is entering password in TextBox it will encrypt that password and stored in database and at the time of logon the user will provide his plain passoword and it will retrive from database match with the user provided password and match.. if it
is matching then allow to next page..
and also if user forget password able to sent password to mail
Loading

Krishna GaradRank #191 · 12.8K reputationPosted Jan 28, 2011, 6:13 PM EST
Check out my article which suits your need surely.
Encrypt & Decrypt In Asp.Net
Mahesh ChandRank #1 · 393.3K reputationPosted Jan 29, 2011, 1:55 AM EST
Bharat Bhushan177 reputationPosted Jan 29, 2011, 1:57 AM EST
http://useofaspdotnet.blogspot.com/2011/01/how-to-encrypt-password-and-store-it-in.html
Suthish NairRank #92 · 22.8K reputationPosted Jan 30, 2011, 8:27 AM EST
So other members can easily find the answers.
Rohit10 reputationPosted Jan 24, 2012, 9:31 PM EST
One thing you can do is:
Take hash of the Password and store it in database.
Then when a user logs in... convert the user input passwrd into hash and match with what is present in database.
This will result in more security.
and for mailing a password: you can simply generate a random number using contnts of username or datetime and send it as new password.