Windows.Security.Cryptography和Windows Phone 8 SDK? [英] Windows.Security.Cryptography and Windows Phone 8 SDK?

查看:206
本文介绍了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. (http://msdn.microsoft.com/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 http://www.bouncycastle.org/ 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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