ChiakiYu.Common.Data.UserPasswordHelper.MD5 C# (CSharp) Method

MD5() public static method

标准MD5加密
public static MD5 ( string str ) : string
str string 待加密的字符串
return string
        public static string MD5(string str)
        {
            var b = Encoding.UTF8.GetBytes(str);
            b = new MD5CryptoServiceProvider().ComputeHash(b);
            return b.Aggregate("", (current, t) => current + t.ToString("x").PadLeft(2, '0'));
        }