Klasse PasswordHasher
java.lang.Object
ch.framedev.simplejavautils.PasswordHasher
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbyte[]hashPassword(String password) Hashes the given password using the PBKDF2 algorithm.booleanverifyPassword(String password, byte[] expectedHashResult) Verifies the given password against the expected hash result.
-
Konstruktordetails
-
PasswordHasher
public PasswordHasher()
-
-
Methodendetails
-
hashPassword
Hashes the given password using the PBKDF2 algorithm.- Parameter:
password- The password to be hashed.- Gibt zurück:
- The hashed password.
-
verifyPassword
Verifies the given password against the expected hash result.- Parameter:
password- The password to be verified.expectedHashResult- The expected hash result.- Gibt zurück:
- True if the password is verified, false otherwise.
-