MD5加密:
<@ Import Namespace="System.Web.Security" >
MD5.Text =FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text, "MD5") ;
SHA1加密:
<%@ Import Namespace="System.Web.Security" >
SHA1.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text,"SHA1");