PasswordDeriveBytes(.net 2.0) for iPhone

前端 未结 1 719
清歌不尽
清歌不尽 2021-01-25 00:06

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 especial

相关标签:
1条回答
  • 2021-01-25 00:49

    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).

    https://raw.github.com/mono/mono/master/mcs/class/corlib/System.Security.Cryptography/PasswordDeriveBytes.cs

    0 讨论(0)
提交回复
热议问题