Package de.srsoftware.tools
Klasse UuidHasher
java.lang.Object
de.srsoftware.tools.UuidHasher
- Alle implementierten Schnittstellen:
PasswordHasher<String>
A password hasher that uses uuids as salt
-
Konstruktordetails
-
UuidHasher
Create a new instance- Löst aus:
NoSuchAlgorithmException- if SHA256 cannot be instantiated
-
-
Methodendetails
-
hash
Beschreibung aus Schnittstelle kopiert:PasswordHasherhashes a password using a second input as salt- Angegeben von:
hashin SchnittstellePasswordHasher<String>- Parameter:
password- the password to processuuid- the salt added to the password- Gibt zurück:
- the hased password
-
salt
Beschreibung aus Schnittstelle kopiert:PasswordHasherreturn the salt part of a given hashed password- Angegeben von:
saltin SchnittstellePasswordHasher<String>- Parameter:
hashedPassword- the hashed password to tokenize- Gibt zurück:
- the salt extracted from the password
-