public interface HashEngine
Modifier and Type | Method and Description |
---|---|
static HashEngine |
bcrypt(int rounds)
Returns the
BCrypt hash tool with given rounds number for salt generation. |
static HashEngine |
bcrypt(java.lang.String salt)
Returns the
BCrypt hash tool with given salt. |
boolean |
check(java.lang.String input,
java.lang.String hash)
Validates the input string with given hash.
|
java.lang.String |
hash(java.lang.String input)
Creates a hash from the input string.
|
static HashEngine |
pbk2()
Returns PBK2DF2 hash.
|
static HashEngine bcrypt(int rounds)
BCrypt
hash tool with given rounds number for salt generation.static HashEngine bcrypt(java.lang.String salt)
BCrypt
hash tool with given salt.static HashEngine pbk2()
java.lang.String hash(java.lang.String input)
boolean check(java.lang.String input, java.lang.String hash)
true
if input matches the hash.Copyright © 2003-present Jodd Team