public string Md5Encrypt(string str, string str2)
{
byte[] result = Encoding.Default.GetBytes((str+str2).Trim()); //tbPass为输入密码的文本框
MD5 md5 = new MD5CryptoServiceProvider();
byte[] output = md5.ComputeHash(result);
string retrueMd5 = BitConverter.ToString(output).Replace("-", "");
return retrueMd5;
}

相关文章:

  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2021-12-24
  • 2021-10-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
相关资源
相似解决方案