1: public string CreateMD5(string inputStr)
   2: {
   3:     MD5 md5 = MD5.Create();
   4:     byte[] byteChar = md5.ComputeHash(Encoding.Default.GetBytes(inputStr));
   5:  
   6:     StringBuilder sb = new StringBuilder();
   7:     foreach (byte b in byteChar)
   8:     {
   9:        sb.Append(b.ToString("x2"));
  10:     }
  11:     return sb.ToString();
  12: }

相关文章:

  • 2021-10-01
  • 2021-11-01
  • 2021-07-27
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-10-17
猜你喜欢
  • 2021-10-17
  • 2021-07-17
  • 2021-11-19
  • 2022-01-26
  • 2022-01-15
相关资源
相似解决方案