我想用HMACSHA1
项目中的类,但命名空间 System.Security.Cryptography
不见了。如果我添加引用 System.Security
,我找到了命名空间 Cryptography
但没有类(class) HMACSHA1
.我找不到命名空间 Windows.Security.Cryptography
这似乎取代了 System.Security.Cryptography
.
我的项目针对框架 .NET 4.5
和 .NET
对于 Windows Store 应用程序,他使用 Nuget
在 Visual 2012
在 Windows 7
.
有人有解决这个问题的方法吗?
最佳答案
根据 HMACSHA1
上的 MSDN 条目
没有信息表明它包含在 Portable Class Library
中.
但是:有 Portable Class Libraries Contrib在那里,其中包括 HMACSHA1
的端口
关于portable-class-library - 缺少 System.Security.Cryptography,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25243400/