public interface ESPasswordHashGenerator
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ESPasswordHashGenerator.ESHashAndSalt
Wrapper interface for a hash/salt pair.
|
| Modifier and Type | Method and Description |
|---|---|
ESPasswordHashGenerator.ESHashAndSalt |
hashPassword(String password)
This method will hash the password using a newly generated salt.
|
boolean |
verifyPassword(String password,
String hash,
String salt)
Verifies if the given password matches the hash/salt.
|
ESPasswordHashGenerator.ESHashAndSalt hashPassword(String password)
password - the password to hashESPasswordHashGenerator.ESHashAndSaltCopyright © 2017. All rights reserved.