asp.net 关于加密

void Page_load(object sender,EventArgs e)

{

     string s="hehe";

    string s1=System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(s,"sha1");      Response.Write(s1);

      Response.Write(s);

 }

 

这是关于sha1加密的,md5加密就是将sha1换成md5就可以了

你可能感兴趣的:(asp.net)