public static string MD5Encrypt32(string password) { string pwd = ""; MD5 md5 = MD5.Create(); byte[] b = md5.ComputeHash(Encoding.UTF8.GetBytes(password)); for (int i = 0; i < b.Length; i++) { pwd = pwd + b[i].ToString("X"); } return pwd; }