public class HasherBCrypt
extends java.lang.Object
Constructor and Description |
---|
HasherBCrypt() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
hash(char[] password)
Hashes the password
|
static boolean |
verify(char[] password,
java.lang.String hashed)
Verifies password
|
public static boolean verify(char[] password, java.lang.String hashed)
password
- character array of password stringhashed
- hashed passwordpublic static java.lang.String hash(char[] password)
password
- character array of password string that needs to be hashed