Introduction Here in this article I am describing that how you can encrypt your password in ASP.NET using One Way Encryption and how to secure your password before saving in the database or XML file etc. Attackers and Hackers are always try to attack the database and stole password stored in database. It is the responsibility of the developer to encrypt the password before storing the database. One Way Encryption is secure to protect the password. One Way Encryption is Encrypt the password but not Decrypt. In this example I have used SHA512Managed Class. The size of SHA512Managed algorithm is 512 bits. Getting Started with One Way Encryption
Output Summary In this article you learned that how you can encrypt your password by One Way Encryption and save it from attackers.