alives
string str = "要加密的Info";
string pwd = string.Empty;
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider(); //需要引用命名空间 using System.Security.Cryptography;
pwd = BitConverter.ToString(md5.ComputeHash(UTF8Encoding.Default.GetBytes(str)),2,6);
//最终 pwd 就是加密后的信息

 

分类:

技术点:

相关文章:

  • 2021-11-11
  • 2021-12-26
  • 2021-11-19
  • 2021-11-01
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-10-01
  • 2021-12-31
  • 2021-09-21
  • 2021-12-28
  • 2022-12-23
  • 2021-11-01
相关资源
相似解决方案