在Android的PBKDF2功能功能、Android

由网友(酒酿樱桃子)分享简介:有PBKDF2实现机器人。我想获得使用PBKDF2功能键。我找不到一个例子来这样做。Is there PBKDF2 implementation for Android. I am trying to derive a key using PBKDF2 function. I couldn't find an exa...

有PBKDF2实现机器人。我想获得使用PBKDF2功能键。我找不到一个例子来这样做。

Is there PBKDF2 implementation for Android. I am trying to derive a key using PBKDF2 function. I couldn't find an example to do so.

推荐答案

自由选择是:

http://rtner.de/software/PBKDF2.html http://bouncycastle.org/ (这可能比一些Android的捆绑 org.bouncycastle ) http://www.unwesen.de/2011/06/12/encryption-on-android-bouncycastle/ https://github.com/rtyley/spongycastle#readme http://rtner.de/software/PBKDF2.html http://bouncycastle.org/ (that might be newer than some Android-bundled org.bouncycastle) http://www.unwesen.de/2011/06/12/encryption-on-android-bouncycastle/ https://github.com/rtyley/spongycastle#readme

如果一个商业组件是一个选项,例如参见http://www.chilkatsoft.com/java-encryption.asp (样品code http://www.example-$c$c.com/android/crypt2_pbkdf2.asp).

IF a commercial component is an option see for example http://www.chilkatsoft.com/java-encryption.asp (sample code http://www.example-code.com/android/crypt2_pbkdf2.asp).

另一种选择是使用 javax.crypto中的并执行它自己,虽然我不建议......

Another option is to use javax.crypto and implement it yourself although I wouldn't recommend that...