protected
void
Page_Load(
object
sender, EventArgs e)
{
string s1 = " qixin " ;
Response.Write( " 字符串qixin经过sha1加密后为:<br> " );
string s2 = System.Web.Security.FormsAuthentication
.HashPasswordForStoringInConfigFile(s1, " sha1 " );
Response.Write(s2);
Response.Write( " <br> " );
string s3 = " qixin " ;
Response.Write( " 字符串qixin经过md5加密后为:<br> " );
string s4 = System.Web.Security.FormsAuthentication
.HashPasswordForStoringInConfigFile(s3, " md5 " );
Response.Write(s4);
}
{
string s1 = " qixin " ;
Response.Write( " 字符串qixin经过sha1加密后为:<br> " );
string s2 = System.Web.Security.FormsAuthentication
.HashPasswordForStoringInConfigFile(s1, " sha1 " );
Response.Write(s2);
Response.Write( " <br> " );
string s3 = " qixin " ;
Response.Write( " 字符串qixin经过md5加密后为:<br> " );
string s4 = System.Web.Security.FormsAuthentication
.HashPasswordForStoringInConfigFile(s3, " md5 " );
Response.Write(s4);
}