public static string ToPassword(this string str) { if (str is null) { throw new ArgumentNullException(nameof(str)); } return(HashManager.GetMd5(HashManager.GetMd5(str + "Rye"))); }
/// <summary> /// 获取字符串的MD5 Hash值 /// </summary> public static string ToMd5Hash(this string value) { return(HashManager.GetMd5(value)); }