jBCrypt alternative? Officially threadsafe, with a bigger community
Asked Answered
I

1

8

To hash passwords (one-way), it looks like bcrypt is the best.

I am about to start using jBCrypt, but I have a few worries:

Is there a similar, more mainstream library that everyone is using, and that I missed somehow? (Java, open source)
Or is it actually the "most mainstream" one?

Introjection answered 28/12, 2011 at 9:11 Comment(4)
It should be thread safe (code.google.com/p/jbcrypt/issues/detail?id=2)Sowers
Now that the project is on Google and has a Google Group, maybe it will gain more traction. code.google.com/p/jbcryptSowers
FWIW, the cited question (and accepted answer) claiming that jBcrypt is not threadsafe is dubious / wrong. See https://mcmap.net/q/1469833/-is-jbcrypt-0-3-threadsafe for more recent information.Whitlow
its now on github github.com/djmdjm/jBCryptPrejudge
L
7

BCrypt is a clever but 'simple' algorithm. The Java code is 700 lines long (including comments, and 300 lines of hexadecimal constants) which is simply a port of the original code

That's not a complicated framework with dozens of modules. It can't have regular announcement about milestones reached. It just works... You'll probably have 1 change in the next few years due to a security issue found by a particularly smart security researcher, but you won't have a community built around that, improvements are not expected as the original algorithm is already implemented

Tests are here to prove the consistency with the C version, I would choose it

Loriannlorianna answered 29/12, 2011 at 11:1 Comment(1)
I created issues to address each of my worries, and now it looks like the project is getting a bit of activity after all :-) I decided to integrate this library and it seems to work well so far.Introjection

© 2022 - 2024 — McMap. All rights reserved.