| 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)
|
| Modifier and Type | Field and Description |
|---|---|
static List<BCrypt.Version> |
BCrypt.Version.SUPPORTED_VERSIONS
List of supported versions
|
| Modifier and Type | Method and Description |
|---|---|
BCrypt.Result |
BCrypt.Verifyer.verifyStrict(byte[] password,
byte[] bcryptHash,
BCrypt.Version expectedVersion)
Verify given bcrypt hash, which includes salt and cost factor with given raw password requiring a specific
version.
|
BCrypt.Result |
BCrypt.Verifyer.verifyStrict(char[] password,
char[] bcryptHash,
BCrypt.Version expectedVersion)
Verify given bcrypt hash, which includes salt and cost factor with given raw password requiring a specific
version.
|
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,
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. All rights reserved.