Your home page or you manage the website has a variety of passwords to be protected, put your password directly in a database or a lot of security hazards, so password encrypted storage is the most common practice. It is very easy to achieve encryption in ASP.NET. The CookieAuthentication class is available in the .NET SDK, where the HashPasswordforstoringInConfigFile method can use the MD5 and SHA1 algorithms directly. The examples are as follows:
FILE: Encrypting.aspx
<% @ Page language = "c #" codebehind = "encrypting.cs" autoeventwireup = "false" inherits = "encrypting.encrypting"%>
head>