我正在使用新版本的ASP.NET MVC 6 (ASP.NET 5)。如果我的目标是.NET CoreCLR框架(ASP.NET Core),代码就不会编译,因为我使用的是来自System.Security.Cryptography的MD5CryptoServiceProvider。您能建议使用CoreCLR框架进行编译的替代方案吗?
发布于 2016-03-30 15:16:26
更新到Victor Hurdugaci's answer:使用包System.Security.Cryptography.Algorithms。
System.Security.Cryptography.Hashing.Algorithms目前已被标记为过时。

发布于 2016-12-08 02:59:41
对于增量散列,在System.Security.Cryptography中:
using (IncrementalHash hasher = IncrementalHash.CreateHash(HashAlgorithmName.MD5))
{
//hash loop
hasher.AppendData(data);
hasher.AppendData(data);
hasher.AppendData(data);
byte[] hash = hasher.GetHashAndReset();
}https://stackoverflow.com/questions/27216121
复制相似问题