Windows Phone 8.1 System.Security.Cryptography doesn't exist

社会主义新天地 提交于 2019-12-12 04:14:41

问题


I need to use the System.Security.Cryptography namespace in my Windows Phone 8.1 app - specifically the rsa provider. But there is no such namespace available when i make a Windows Phone app. When I use Siverlight the namespace is there but I cant find it when creating standard Windows Runtime apps. The MSDN documentation says that RSACryptoServiceProvider is available on Windows Phone 8.1, do I need to reference any additonal assemblies to get it working?


回答1:


In windows phone 8.1 this is different from windows phone 8. Use this instead:

Using Windows.Security.Cryptography;


来源:https://stackoverflow.com/questions/24381079/windows-phone-8-1-system-security-cryptography-doesnt-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!