Password4j is a Java user-friendly cryptographic library for hashing and checking passwords with different
Key derivation functions (KDFs) and Cryptographic hash functions (CHFs).

You can hash passwords with

PBKDF2
bcrypt
scrypt
Argon2

Use Password4j when you need to