这段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");
}
狐的传说