Skip navigation links

Package org.mindrot.jbcrypt

BCrypt implementation for password hashing and verification.

See: Description

Package org.mindrot.jbcrypt Description

BCrypt implementation for password hashing and verification. This package provides a Java implementation of the BCrypt password hashing algorithm, which is a strong, adaptive password hashing function designed for secure password storage. BCrypt incorporates a salt to protect against rainbow table attacks and includes a work factor to make brute force attacks computationally expensive.

Key Components

Main Features

Usage

// Hash a password
String hashed = BCrypt.hashpw(password, BCrypt.gensalt());

// Verify a password
boolean matches = BCrypt.checkpw(candidate, hashed);

Security Notes

Skip navigation links