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);
	}
知乎: @张赐荣
赐荣博客: www.prc.cx
 
                    
                 
                
 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号