【发布时间】:2016-08-22 12:37:00
【问题描述】:
我有使用密码学的 ASP.Net Core 1.0.0 应用程序。我需要使用RSACryptoServiceProvider 解密密钥。 Visual Studio 建议将 System.Security.Cryptography.Csp 版本 4.0.0 添加到我的依赖项中。我接受,在 Windows 上一切正常。但是当我在 Ubuntu 16.04 RSACryptoServiceProvider 上部署它时,方法开始抛出 PlatformNotSupportedException 异常。我使用了错误的程序集吗?
我找到了https://github.com/dotnet/corefx/tree/v1.0.0/src/System.Security.Cryptography.Csp 并且有 1.0.0 版本。那是我需要的吗?如何将其添加到我的项目中?
【问题讨论】:
标签: c# asp.net-core cryptoapi ubuntu-16.04