Open ricardojmendez opened 9 years ago
good idea, updated the logic with the check
also just a heads up, I've been meaning to do this for a while and I'm finally moving lib-noir to use Scrypt as Bcrypt hasn't been updated since 2010.
Thanks for the heads up, but no problem - not relying on any specific Bcrypt behavior. Cheers!
Calling:
returns false as expected. However, calling
raises a NullPointerException from org.mindrot.jbcrypt.BCrypt.hashpw. It would be better to validate both parameters before passing them down to BCrypt/checkpw, and return false if one of them is nil.