请发到.cn

解决方案 »

  1.   

    //MD5
            private string HashTextMD5(string strToHash)
            {
                MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
                byte[] bytValue;
                byte[] bytHash;
                string strPassword;
                bytValue = System.Text.Encoding.UTF8.GetBytes(strToHash);
                bytHash = md5.ComputeHash(bytValue);
                md5.Clear();
                strPassword = Convert.ToBase64String(bytHash);
                return strPassword;
            }
      

  2.   

    主要是对密码进行加密,最好是.net封装的
      

  3.   

    pwd=System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("123", "MD5");