Silverlight 中的 SHA512 不可用,是否有可用的托管库?
Silverlight(适用于 Windows Phone 7 CTP SDK)中缺少 SHA512Managed
,最多只能使用 SHA256。有谁知道我可以使用提供独立 C# 或 VB.net SHA512 实现的 .NET 类吗?
我需要使用它来对 HTTP Web 服务进行身份验证。
SHA512Managed
is missing in Silverlight (for Windows Phone 7 CTP SDK), only upto SHA256 is available for use. Does anyone know a .NET class that I could use that offers a self-contained C# or VB.net SHA512 implementation?
I need to use this for authentication to a HTTP web service.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
使用 http://hashlib.codeplex.com/ 中的 HashLib 可以正常工作。
HashLib.HashFactory.HashCryptoNotBuildIn
中的一些方法不需要System.Crytography
。Using HashLib from http://hashlib.codeplex.com/ will work fine. There are methods within
HashLib.HashFactory.HashCryptoNotBuildIn
that do not requireSystem.Crytography
.Mono 有一个您可能会使用的实现,只要您对操作系统许可证感到满意。
https://github.com /mono/mono/blob/master/mcs/class/corlib/System.Security.Cryptography/SHA512Managed.cs
Mono has an implementation you could probably use, provided you are happy with the OS license.
https://github.com/mono/mono/blob/master/mcs/class/corlib/System.Security.Cryptography/SHA512Managed.cs
Silverlight 不包含 System.Security.Cryptogray 命名空间。但是,您始终可以移植开源 BeeCrypt 加密库(用 C 编写),并直接在 Silverlight 中使用它。
http://www.koders.com/info.aspx?c= ProjectInfo&pid=VZ53QH5WTR5UV7LWXYVDKP7P3G
Silverlight does not contain the System.Security.Cryptogray namespace. However, you could always port the open source BeeCrypt Cryptography Library (written in C), and use it directly in Silverlight.
http://www.koders.com/info.aspx?c=ProjectInfo&pid=VZ53QH5WTR5UV7LWXYVDKP7P3G
由于不支持
SHA512
,我们必须使用我们自己的或第三方的实现。(在此处查看 msdn..)
Chilkat 的实现对我有用。它非常简单&直接使用。
在这里查看..
As there is no support for
SHA512
, we have to use our own or 3rd party implementations.(Check msdn here..)
Chilkat's implementation worked for me. It is very simple & straight-forward to use.
Check it out here..