Package main.controller.account.password
Class PasswordHashManager
java.lang.Object
main.controller.account.password.PasswordHashManager
The PasswordHashManager class provides a utility for hashing passwords using the SHA3-256 algorithm.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
The hashing algorithm used to hash passwordsprivate static final MessageDigest
The MessageDigest object used to perform the hashing -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
hashPassword
(String password) Hashes the specified password using the SHA3-256 algorithm.
-
Field Details
-
HASH_ALGORITHM
The hashing algorithm used to hash passwords- See Also:
-
messageDigest
The MessageDigest object used to perform the hashing
-
-
Constructor Details
-
PasswordHashManager
public PasswordHashManager()
-
-
Method Details
-
hashPassword
Hashes the specified password using the SHA3-256 algorithm.- Parameters:
password
- the password to be hashed- Returns:
- a byte array containing the hashed password
-