//以字节方式存储  

byte[] data = System.Text.Encoding.Default.GetBytes(Pwd);

System.Security.Cryptography.SHA1 sha1 = new System.Security.Cryptography.SHA1CryptoServiceProvider();

//得到哈希值

byte[] result = sha1.ComputeHash(data);

//转换成为字符串的显示

return System.BitConverter.ToString(result).Replace("-", ""); 

相关文章:

  • 2022-01-22
  • 2022-12-23
  • 2021-11-22
  • 2021-09-14
  • 2021-12-31
  • 2022-01-07
  • 2021-07-01
  • 2022-01-18
猜你喜欢
  • 2022-12-23
  • 2022-03-08
  • 2022-01-24
  • 2022-12-23
  • 2021-11-06
  • 2021-06-05
  • 2021-11-13
相关资源
相似解决方案