问题
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?
回答1:
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();
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"
}
}
回答2:
Have you looked in System.Security. You will need to add an assembly reference to this DLL.
System.Security.Cryptography.Rijndael x = System.Security.Cryptography.Rijndael.Create();
Check here:
MSDN
来源:https://stackoverflow.com/questions/35912849/rijndael-in-class-library-package-not-available-for-net-core