This example demonstrates Encrypting & Decrypting data in ASP.NET Web Applications.
The password is encrypted and stored in a cookie.
Username:
Password: