密码如何加密?

解决方案 »

  1.   

    引用 using System.Web.Security;             PassWord3=FormsAuthentication.HashPasswordForStoringInConfigFile(PassWord3,"MD5");
      

  2.   

    pwd=FormsAuthentication.HashPasswordForStoringInConfigFile(PassWord3,"MD5");
      

  3.   

    加密后字符串=FormsAuthentication.HashPasswordForStoringInConfigFile(密码,"MD5");
      

  4.   

    呵呵,我也来留个位置.
      strHashValue = FormsAuthentication.HashPasswordForStoringInConfigFile( txtPassword.Text, Label1.Text )