Windows.Security.Cryptography和Windows Phone 8 SDK?

编程入门 行业动态 更新时间:2024-10-25 00:34:28
本文介绍了Windows.Security.Cryptography和Windows Phone 8 SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

今天我安装了新的 Windows Phone 8 sdk ( Windows Phone上的API可能或可能不足以满足您的需要。

Windows.Security.Cryptography 最有可能只是Microsoft cryptolib的x86 COM抽象,这与大多数 System.Security.Cryptography .NET 3.5-4.0

today i installed the new windows phone 8 sdk (w8phone sdk)... tried to include some of my base classes from windows 8 apps... same core they say... but whoops?

no Windows.Security.Cryptography?

I used the SymmetricKeyAlgorithmProvider for end-to-end encryption of serialized data with WCF Services. (msdn.microsoft/en-us/library/windows/apps/xaml/br241537.aspx)

Seems using .NET Framework Encryption is quite proprietary to the platforms/devices.

Anyone some advises for same functionality on Windows 8 Phone?

Thanks.

EDIT/UPDATE

I solved the problem by porting www.bouncycastle/ to separate Windows 8 and Windows Phone 8 Libs and a slight changed version of the little BC Engine from here: Encrypt/Decrypt using Bouncy Castle in C#

解决方案

Windows.Security.Cryptography is a WinRT API. Windows Phone 8 still being mostly Silverlight uses the APIs from System.Security.Cryptography, which does not include the SymmetricKeyAlgorithmProvider.

You can still use the AesManaged API on Windows Phone, which may, or may not, be enough for your purpose.

Windows.Security.Cryptography is most likely just the x86 COM abstraction of the Microsoft cryptolib, which is the same as most of System.Security.Cryptography on .NET 3.5-4.0

更多推荐

Windows.Security.Cryptography和Windows Phone 8 SDK?

本文发布于:2023-11-16 19:46:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607207.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Security   Windows   Cryptography   SDK   Phone

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!