PasswordDeriveBytes(.NET 2.0)的iPhone [英] PasswordDeriveBytes(.net 2.0) for iPhone

查看:316
本文介绍了PasswordDeriveBytes(.NET 2.0)的iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iPhone上使用的.NET 2.0 PasswordDeriveBytes(RSA PBKDF1)。我怎么能达到同样的确切的实现?是否有任何方法或库?我特别想它使用的盐。

I want to use PasswordDeriveBytes(RSA PBKDF1) of .NET 2.0 within iPhone. How could i achieve the same exact implementation? Are there any methods or libraries for it? I especially want it for using a salt.

感谢

推荐答案

由于MS实现不完全遵循PKCS#5规范的最简单的方法是将转换成单声道(C#)源$ C ​​$ C到这一目标C.将让你非常接近MS执行(一切,除了一个非常糟糕的错误:-)。在你坚持规范任何情况下,我建议(不明白什么它的设计,以提供更多的字节)。

Since MS implementation is not totally following the PKCS#5 specification the easiest way would be to convert Mono (C#) source code into Objective C. That will get you very close to MS implementation (everything except a very bad bug :-). In any case I suggest you stick to the specification (don't get more bytes that what it's designed to provide).

<一个href="https://raw.github.com/mono/mono/master/mcs/class/corlib/System.Security.Cryptography/PasswordDeriveBytes.cs" rel="nofollow">https://raw.github.com/mono/mono/master/mcs/class/corlib/System.Security.Cryptography/PasswordDeriveBytes.cs

这篇关于PasswordDeriveBytes(.NET 2.0)的iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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