DES 加密在 .NET Standard 中可用吗?

Is DES cryptography available in .NET Standard?

我正在尝试在 .NET Standard 项目中使用 DES 密码术(我知道它既旧又糟糕,但外面的东西仍然在使用它!)但是我终生无法在框架中找到它。 .NET Standard 中的所有加密 classes 似乎驻留在程序集 System.Security.Cryptography.Algorithms 中并浏览源代码我可以看到 DES 实现:https://github.com/dotnet/corefx/blob/master/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/DES.cs

我的 VS2017 IDE 拒绝接受 DES class 存在于任何版本的 .NET Standard 中,报告说:

The name 'DES' does not exist in the current context

有什么想法吗?

看起来它被添加到标准 2.0 中,here is a link to the diff between 1.6 and 2.0。我假设您正在寻找

public abstract class DES

另一个好消息是我相信它已经发布了,所以如果你的目标是 2.0,我认为你应该很好。