Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when we store password in admin section of database, it is not stored in encrypted format. So ho to do encryption with the password text?
Posted

There's a System.Cryptography namespace just FULL of encryption methods.
 
Share this answer
 
Don't store the actual password. Store a hash of the password.

When the user logins in, hash the plaintext and compare with the stored hash.

checkout RSA256 or other hash functions in the docs.

Note: this is one way, the password cannot be recovered if it is forgotten, you would have to set a new password.
 
Share this answer
 
 
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