portable-class-library - 缺少 System.Security.Cryptography

标签 portable-class-library hmacsha1

我想用HMACSHA1项目中的类,但命名空间 System.Security.Cryptography不见了。如果我添加引用 System.Security ,我找到了命名空间 Cryptography但没有类(class) HMACSHA1 .我找不到命名空间 Windows.Security.Cryptography这似乎取代了 System.Security.Cryptography .

我的项目针对框架 .NET 4.5.NET对于 Windows Store 应用程序,他使用 NugetVisual 2012Windows 7 .

有人有解决这个问题的方法吗?

最佳答案

根据 HMACSHA1 上的 MSDN 条目

http://msdn.microsoft.com/en-us/library/system.security.cryptography.hmacsha1(v=vs.110).aspx

没有信息表明它包含在 Portable Class Library 中.

但是:有 Portable Class Libraries Contrib在那里,其中包括 HMACSHA1 的端口

关于portable-class-library - 缺少 System.Security.Cryptography,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25243400/

相关文章:

Java 代码到 ruby

c - 如何用C在Amazon S3中进行签名

c# - 为什么某些 NuGet 包同时提供可移植库和特定于平台的库?

mono - System.Security.Cryptography.Xml 在可移植类库中?

c# - PCL 中的 TPL 和监视器

c# - 是否可以检查哈希值是否是使用 SHA1 生成的并且是有效的哈希值?

.net - Assembly.GetCallingAssembly 在 WinRT 上不受支持,但适用于可移植类库?

c# - 如何使用 HttpClient 将带有 JSON 的 DELETE 发送到 REST API

linux - Linux 加密库中的 alloc_ahash 与 alloc_shash

javascript - iOS 和 javascript 库之间的 HMAC SHA-512 生成差异