MD5加密(简单实现_可自行扩展)

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 就是加密后的信息
原文地址:https://www.cnblogs.com/alives/p/14636205.html