Interface AuthFileHashInterface
- All Known Implementing Classes:
AuthFileBCryptHash
public interface AuthFileHashInterface
This an interface for different hash algorithms using to protect users' password
in the username/password file
- Author:
- tao
-
Method Summary
-
Method Details
-
match
Check if the plain password matches the hashed password. Return true if they match; false otherwise.- Parameters:
plain
- the plain passwordhashed
- the hashed password- Returns:
- true if they match
- Throws:
Exception
-
hash
Generate the hash value for a specified plaint password- Parameters:
plain
- the plain password- Returns:
- the hash value of the password
-