public interface HashingService
Hash object.| Modifier and Type | Method and Description |
|---|---|
Hash |
createHash(char[] toHash)
Creates a hash from a char[].
|
Hash |
createHash(String toHash)
Creates a hash from a string.
|
boolean |
validatePassword(char[] password,
Hash correctHash)
Validates a password using a hash.
|
boolean |
validatePassword(String password,
Hash correctHash)
Validates a password using a hash.
|
Hash createHash(String toHash)
toHash - the String to hash.Hash giving the hash of the String and the Salt used.Hash createHash(char[] toHash)
toHash - the char[] to hash.Hash giving the hash of the char[] and the Salt used.boolean validatePassword(char[] password,
Hash correctHash)
password - the password to check.correctHash - the hash of the valid password.Copyright © 2013-2018–2019 SeedStack. All rights reserved.