You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Talking about it, I think the interface of the lib a bit surprising. Why BCrypt.with()... is for hashing, and BCrypt.verifyer()... is for verifying?
It would really make more sense, from an external point of view, if we could simply do:
BCrypt.with(LongPasswordStrategies.truncate()).verify(pw, hash);
The text was updated successfully, but these errors were encountered:
patrickfav
changed the title
Unify API to to Bcrypt.with() to be able to hash and verify from the same entrypoint
Unify API Bcrypt.with() to be able to hash and verify from the same entrypoint
Oct 20, 2019
Note that you can keep retro-compatibility by keeping the BCrypt.verifyer() as only a wrapper around BCrypt.with() (and marking it as obsolete, if possible in Java?).
See discussion in #23
The text was updated successfully, but these errors were encountered: