Java cryptographic library that supports Argon2, bcrypt, scrypt and PBKDF2 aimed to protect passwords in databases. Easy to use by design, highly customizable, secure and portable. All the implementations follow the standards and have been reviewed to perform better in the JVM.
Argon2Function#internalHash(...)
used a double conversion from byte[]
to String
and back to byte[]
that created inconsistencies in `Hash#salt (#143)Hash#Hash(HashingFunction, String, byte[], String)
marked deprecatedExecutorService
instantiated during object creation instead of during the hashing processbyte[]
arguments (#93).forceUpdate()
forces Password4j to recalculate a new hash even if the parameters didn't change (#102).andUpdate()
no more recalculates the hash if the algorithm, salt or pepper changed from the hash found in Password.check()
(#102)