Windows Phone 8.1 System.Security.Cryptography不存在 [英] Windows Phone 8.1 System.Security.Cryptography doesn't exist

查看:40
本文介绍了Windows Phone 8.1 System.Security.Cryptography不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Windows Phone 8.1应用程序中使用System.Security.Cryptography命名空间-特别是rsa提供程序.但是当我制作Windows Phone应用程序时,没有可用的名称空间.当我使用Siverlight时,名称空间存在,但是在创建标准Windows运行时应用程序时找不到.MSDN文档说RSACryptoServiceProvider在Windows Phone 8.1上可用,我是否需要引用任何附加程序集才能使其正常工作?

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?

推荐答案

在Windows Phone 8.1中,这与Windows Phone 8不同.请改用此方法:

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

Using Windows.Security.Cryptography;

这篇关于Windows Phone 8.1 System.Security.Cryptography不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆