用MD5加密字符串

 public static string MDK(string _str)
        {
            MD5 m5 = new MD5CryptoServiceProvider();

            byte[] buffer = System.Text.Encoding.Unicode.GetBytes(_str);

            return BitConverter.ToString(m5.ComputeHash(buffer)).Replace("-", "");

        }

      
原文地址:https://www.cnblogs.com/jiangxianshen/p/8204273.html