public static string StringToMD5Hash(string inputString)
        {
            MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
            byte[] encryptedBytes = md5.ComputeHash(Encoding.ASCII.GetBytes(inputString));
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < encryptedBytes.Length; i++)
            {
                sb.AppendFormat("{0:x2}", encryptedBytes[i]);
            }
            return sb.ToString();
        }


using System.Security.Cryptography;
using System.Text;

相关文章:

  • 2022-01-17
  • 2021-12-03
  • 2021-08-21
  • 2022-12-23
  • 2021-09-13
  • 2022-01-24
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2021-07-18
  • 2021-10-30
  • 2021-09-02
  • 2021-10-07
相关资源
相似解决方案