Interface PasswordHashProvider
- All Known Implementing Classes:
Argon2HashProvider
,NOOPHashProvider
,PBKPD2HashProvider
public interface PasswordHashProvider
Provides a irreversible hash for a password/key.
-
Method Summary
-
Method Details
-
hash
Create password hash.- Parameters:
password
- password- Returns:
- hashed password
- Throws:
Exception
- if hashing fails
-
verify
Verify an entered password with a hashed password that has been previously hashed byhash(String)
.- Parameters:
password
- passwordhashedPassword
- hashed password- Returns:
- true, if password matches hashed password
- Throws:
Exception
- if verifying fails
-