Awesome Open Source
Awesome Open Source

logo

Build Status Maven Central Java 9 or higher

Quality Gate Status Security Rating Reliability Rating Maintainability Rating Coverage

This module extends the JCA (Java Cryptography Library) with Argon2, bcrypt and scrypt. It is entirely based on Password4j.

Password4jProvider.enable();

SecretKeyFactory factory = SecretKeyFactory.getInstance("argon2");
Argon2KeySpec spec = new Argon2KeySpec(password, salt, memory, iterations, parallelization, length, type, version);
SecretKey key =  factory.generateSecret(spec);

byte[] hash = key.getEncoded();

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (710,328
Password (1,644
Hashing (629
Bcrypt (468
Related Projects