📅  最后修改于: 2022-03-11 14:48:44.928000             🧑  作者: Mango
using SystemX = System.Security.Cryptography;
public static string Md5(string data) {
var text = data;
using (var md5 = SystemX.MD5.Create())
{ var bs = md5.ComputeHash(Encoding.UTF8.GetBytes(text));
return BitConverter.ToString(bs).Replace("-", "").ToLower();
}
}