public static string GetSHA1Method(string strSource)
{
string strResult = "";

//Create
System.Security.Cryptography.SHA1 sha = System.Security.Cryptography.SHA1.Create();
byte[] bytResult = sha.ComputeHash(System.Text.Encoding.UTF8.GetBytes(strSource));
for (int i = 0; i < bytResult.Length; i++)
{
strResult = strResult + bytResult[i].ToString("X2");
}
return strResult;
}

相关文章:

  • 2022-03-01
  • 2021-07-26
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
猜你喜欢
  • 2021-11-03
  • 2021-11-24
  • 2022-12-23
  • 2022-03-05
  • 2021-07-09
  • 2022-02-23
  • 2021-10-31
相关资源
相似解决方案