Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 PBKDF2WithHmacSHA1 来散列密码。(可能听起来很奇怪,但这不是本次讨论的一部分)。
问题:java的实现太慢了。在我的机器上 2000 次迭代大约需要 2 秒。openssl 的本机实现需要相同的输入 0.05 秒。虽然这不是我想要的安全性(因为 c 太快了),但它太慢了(我不能超过 2000 轮而不惹恼用户,因为散列是在客户端完成的)。
有人可以给我一个建议或在图书馆戳我吗?