Beispiel #1
0
        public static string ToPassword(this string str)
        {
            if (str is null)
            {
                throw new ArgumentNullException(nameof(str));
            }

            return(HashManager.GetMd5(HashManager.GetMd5(str + "Rye")));
        }
Beispiel #2
0
 /// <summary>
 /// 获取字符串的MD5 Hash值
 /// </summary>
 public static string ToMd5Hash(this string value)
 {
     return(HashManager.GetMd5(value));
 }