简体   繁体   English

如何在wp8应用程序中使用AesManaged类?

[英]How do I use the class AesManaged in a wp8 app?

I am trying to use the class AesManaged in my WP8 app, but I cannot find it in no namespace. 我正在尝试在WP8应用程序中使用类AesManaged ,但是我在任何命名空间中都找不到它。 It says here that the class should be availabe in version 4.5 of the .Net Framework. 在这里说,该类应该在.Net Framework 4.5版中可用。

Hence, I searched the folder C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework for the namespace System.Security . 因此,我在文件夹C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework中搜索了名称空间System.Security I could only find it in .NetFramework\\v4.0. 我只能在.NetFramework \\ v4.0中找到它。 However, apparently the namespace does not contain the class AesManaged . 但是,显然名称空间不包含AesManaged类。 The folder \\WindowsPhoneApp does not even contain the file System.Security.dll... \\ WindowsPhoneApp文件夹甚至不包含文件System.Security.dll ...

Is it possible to use the class in a wp8 app or are there other encryption libraries like bouncycastle available for WindowsPhone 8? 是否可以在wp8应用程序中使用该类,或者是否有其他加密库(例如bouncycastle)可用于WindowsPhone 8?

I already used it in a Windows Phone 8 app. 我已经在Windows Phone 8应用程序中使用过它。 Here it is : http://msdn.microsoft.com/en-us/library/windows/apps/system.security.cryptography.aesmanaged.aesmanaged(v=vs.105).aspx 它在这里: http : //msdn.microsoft.com/zh-cn/library/windows/apps/system.security.cryptography.aesmanaged.aesmanaged(v=vs.105).aspx

Version Information Windows Phone OS Supported in: 8.1, 8.0, 7.1, 7.0 版本信息Windows Phone OS受以下版本支持:8.1、8.0、7.1、7.0

I don't believe it exists in 8.1 WinRT however. 我不相信它存在于8.1 WinRT中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM