Skip to content

Password4j/password4j-jca

logo

Build Maven Central Java 9 or higher Password4j 1.6.0

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();

Installation

Password4j-jca runs on Java 9 or higher versions by any vendor.

The artifacts are deployed to Maven Central.

Maven Maven

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>

Contributing

GitHub issues GitHub closed issues

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

SemVer 2.0.0

We use SemVer for versioning.

For the versions available, see the releases on this repository.

Authors

GitHub contributors

  • David Bertoldi - Main Maintainer - firaja

See also the list of contributors who participated in this project.

License

License

This project is licensed under the Apache License 2.0 License - see the LICENSE file for details

Changelog

GitHub Release Date

See the CHANGELOG.md file for a more detailed description of each release.