这段MD5加密代码在.net Core 2.1里面怎么实现?public static string CreateMD5(string input, Guid salt){MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();byte[] bytes = Encoding.Default.GetBytes(input);return FormsAuthentication.HashPasswordForStoringInConfigFile(Convert.ToBase64String(provider.ComputeHash(bytes)).Trim() + salt.ToString().Trim().ToUpper(), "MD5");}
添加回答
举报
0/150
提交
取消