张赐荣——一位视障程序员。
赐荣小站: www.prc.cx

張賜榮

张赐荣的技术博客

博客园 首页 新随笔 联系 订阅 管理
	public static string ComputeMD5 (string text)  // 计算字符串的 MD5
	{
		System.Security.Cryptography.MD5CryptoServiceProvider md = new System.Security.Cryptography.MD5CryptoServiceProvider();
		string hc = BitConverter.ToString(md.ComputeHash(Encoding.Default.GetBytes(text)));
		md.Dispose();
		return (hc);
	}
posted on 2022-02-18 08:55  张赐荣  阅读(228)  评论(0编辑  收藏  举报

感谢访问张赐荣的技术分享博客!
博客地址:https://cnblogs.com/netlog/
知乎主页:https://www.zhihu.com/people/tzujung-chang
个人网站:https://prc.cx/