public class Argon2Password extends Object
| Constructor and Description |
|---|
Argon2Password() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPassword(String hash,
char[] password)
Check if the given password string produces the same hash
|
String |
hashPassword(char[] password)
Create the hash from the password string
|
public boolean checkPassword(String hash, char[] password)
hash - the hashed password retrieved from databasepassword - the password stringpublic String hashPassword(char[] password)
password - the password stringCopyright © 2018 CRISTAL-iSE. All rights reserved.