| Modifier and Type | Method and Description |
|---|---|
BCrypt.Result |
verify(byte[] password,
BCrypt.HashData bcryptHashData)
Verify given raw byte arrays of salt, 23 byte bcrypt hash and password.
|
BCrypt.Result |
verify(byte[] password,
byte[] bcryptHash)
Verify given bcrypt hash, which includes salt and cost factor with given raw password.
|
BCrypt.Result |
verify(byte[] password,
int cost,
byte[] salt,
byte[] rawBcryptHash23Bytes)
Verify given raw byte arrays of salt, 23 byte bcrypt hash and password.
|
BCrypt.Result |
verify(char[] password,
char[] bcryptHash)
Verify given bcrypt hash, which includes salt and cost factor with given raw password.
|
BCrypt.Result |
verify(char[] password,
CharSequence bcryptHash)
Verify given bcrypt hash, which includes salt and cost factor with given raw password.
|
BCrypt.Result |
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 |
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.
|
public BCrypt.Result verifyStrict(byte[] password, byte[] bcryptHash, BCrypt.Version expectedVersion)
BCrypt.Result.verified will be false, even if the hash matches.
If given hash has an invalid format BCrypt.Result.validFormat will be false; see also
BCrypt.Result.formatErrorMessage for easier debugging.
password - to compare against the hashbcryptHash - to compare against the passwordexpectedVersion - will check for this version and wil not verify if versions do not matchBCrypt.Result for more infopublic BCrypt.Result verify(byte[] password, byte[] bcryptHash)
BCrypt.Result.verified true if they match. If given hash has an
invalid format BCrypt.Result.validFormat will be false; see also BCrypt.Result.formatErrorMessage
for easier debugging.password - to compare against the hashbcryptHash - to compare against the passwordBCrypt.Result for more infopublic BCrypt.Result verifyStrict(char[] password, char[] bcryptHash, BCrypt.Version expectedVersion)
BCrypt.Result.verified will be false, even if the hash matches.
If given hash has an invalid format BCrypt.Result.validFormat will be false; see also
BCrypt.Result.formatErrorMessage for easier debugging.
password - to compare against the hashbcryptHash - to compare against the passwordexpectedVersion - will check for this version and wil not verify if versions do not matchBCrypt.Result for more infopublic BCrypt.Result verify(char[] password, char[] bcryptHash)
BCrypt.Result.verified true if they match. If given hash has an
invalid format BCrypt.Result.validFormat will be false; see also BCrypt.Result.formatErrorMessage
for easier debugging.password - to compare against the hashbcryptHash - to compare against the passwordBCrypt.Result for more infopublic BCrypt.Result verify(char[] password, CharSequence bcryptHash)
BCrypt.Result.verified true if they match. If given hash has an
invalid format BCrypt.Result.validFormat will be false; see also BCrypt.Result.formatErrorMessage
for easier debugging.
Same as calling verify(password, bcryptHash.toCharArray())
password - to compare against the hashbcryptHash - to compare against the password (you may just pass a regular String)BCrypt.Result for more infopublic BCrypt.Result verify(byte[] password, BCrypt.HashData bcryptHashData)
BCrypt.Hasher.hashRaw(int, byte[], byte[]).
The result will have BCrypt.Result.verified true if they match. If given hash has an
invalid format BCrypt.Result.validFormat will be false; see also BCrypt.Result.formatErrorMessage
for easier debugging.
Note: This is part of the advanced APIs, only use if you know what you are doing.
password - to compare against the hashbcryptHashData - containing the data of the bcrypt hash (cost, salt, version, etc.)BCrypt.Result for more infopublic BCrypt.Result verify(byte[] password, int cost, byte[] salt, byte[] rawBcryptHash23Bytes)
BCrypt.Hasher.hashRaw(int, byte[], byte[]).
The result will have BCrypt.Result.verified true if they match. If given hash has an
invalid format BCrypt.Result.validFormat will be false; see also BCrypt.Result.formatErrorMessage
for easier debugging.
Note: This is part of the advanced APIs, only use if you know what you are doing.
password - to compare against the hashcost - cost (log2 factor) which was used to create the hashsalt - 16 byte raw hash value (not radix64 version) which was used to create the hashrawBcryptHash23Bytes - 23 byte raw bcrypt hash value (not radix64 version)BCrypt.Result for more infoCopyright © 2018. All rights reserved.