问题描述
请帮助我.在.NET Core中哪里可以找到Rijndael安全密码系统?
Please help me.Where to find the Rijndael Security Cryptography in .NET Core?
我必须在类库(包)项目中包括什么依赖项?
What dependency I must to include in my class library (Package) project?
推荐答案
Rijndael实现尚未(尚未)移植到.NET Core.您可以使用 System.Security.Cryptography.Algorithms
一个针对netstandard1.3
的软件包:
The Rijndael implementation is not (yet) ported to .NET Core. You could use AES (which is a subset of Rijndael) using the System.Security.Cryptography.Algorithms
package which targets netstandard1.3
:
var aes = System.Security.Cryptography.Aes.Create();
注意:您应该只将此软件包依赖项添加到netstandard1.3
TFM中,因为它已经存在于完整框架的核心库中:
Note: you should only add this package dependency to the netstandard1.3
TFM, as it exists in the core library of the full framework already:
"netstandard1.3": {
"dependencies": {
"System.Security.Cryptography.Algorithms": "4.2.0"
}
}
这篇关于类库(包)中的Rijndael不适用于.NET Core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!