我在 Windows Phone 8.1 或通用应用程序和商店应用程序的命名空间 Windows.Security.Cryptography 中找不到库 RSACryptoServiceProvider。
请您参考如下方法:
RSACryptoServiceProvider是 System.Security.Cryptography 的一部分Windows 运行时应用程序中不可用的命名空间。你应该使用 AsymmetricKeyAlgorithmProvider来自 Windows.Security.Cryptography.Core 的类(class)命名空间。
AsymmetricKeyAlgorithmKeyProvider provider=AsymmetricKeyAlgorithmProvider.OpenAlgorithm("<algorithm-name>");
<algorithm-name>参数可以是 AsymmetricAlgorithmNames 中的任何一个值枚举。 RSA 有多种变体。 http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.cryptography.core.asymmetricalgorithmnames.aspx
