| Modifier and Type | Field and Description |
|---|---|
BCrypt.Version |
BCrypt.HashData.version
The used version
|
static BCrypt.Version |
BCrypt.Version.VERSION_2A
$2a$
|
static BCrypt.Version |
BCrypt.Version.VERSION_2B
$2b$ (2014/02)
|
static BCrypt.Version |
BCrypt.Version.VERSION_2X
$2x$ (2011)
|
static BCrypt.Version |
BCrypt.Version.VERSION_2Y
$2y$ (2011)
|
static BCrypt.Version |
BCrypt.Version.VERSION_2Y_NO_NULL_TERMINATOR
$2y$ (2011) without the null terminator
|
static BCrypt.Version |
BCrypt.Version.VERSION_BC
This mirrors how Bouncy Castle creates bcrypt hashes: with 24 byte out and without null-terminator.
|
| Modifier and Type | Field and Description |
|---|---|
static List<BCrypt.Version> |
BCrypt.Version.SUPPORTED_VERSIONS
List of supported versions
|
| Modifier and Type | Method and Description |
|---|---|
static LongPasswordStrategy |
LongPasswordStrategies.hashSha512(BCrypt.Version version)
|
static LongPasswordStrategy |
LongPasswordStrategies.strict(BCrypt.Version version)
|
static LongPasswordStrategy |
LongPasswordStrategies.truncate(BCrypt.Version version)
|
static BCrypt.Verifyer |
BCrypt.verifyer(BCrypt.Version version)
Creates a new instance of bcrypt verifier to verify a password against a given hash.
|
static BCrypt.Verifyer |
BCrypt.verifyer(BCrypt.Version version,
LongPasswordStrategy longPasswordStrategy)
Creates a new instance of bcrypt verifier to verify a password against a given hash.
|
static BCrypt.Hasher |
BCrypt.with(BCrypt.Version version)
Create a new instance of bcrypt hash with given
BCrypt.Version. |
static BCrypt.Hasher |
BCrypt.with(BCrypt.Version version,
LongPasswordStrategy longPasswordStrategy)
Create a new instance with custom version and long password strategy
|
static BCrypt.Hasher |
BCrypt.with(BCrypt.Version version,
SecureRandom secureRandom,
LongPasswordStrategy longPasswordStrategy)
Create a new instance with custom version, secureRandom and long password strategy
|
| Constructor and Description |
|---|
HashData(int cost,
BCrypt.Version version,
byte[] rawSalt,
byte[] rawHash) |
Copyright © 2018–2023. All rights reserved.