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();
Password4j-jca runs on Java 9 or higher versions by any vendor.
The artifacts are deployed to Maven Central.
Add the dependency of the latest version to your pom.xml
:
<dependency>
<groupId>com.password4j</groupId>
<artifactId>password4j-jca</artifactId>
<version>1.0.5</version>
</dependency>
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning.
For the versions available, see the releases on this repository.
- David Bertoldi - Main Maintainer - firaja
See also the list of contributors who participated in this project.
This project is licensed under the Apache License 2.0 License - see the LICENSE file for details
See the CHANGELOG.md file for a more detailed description of each release.