Class PasswordHashManager

java.lang.Object
main.controller.account.password.PasswordHashManager

public class PasswordHashManager extends Object
The PasswordHashManager class provides a utility for hashing passwords using the SHA3-256 algorithm.
  • Field Details

    • HASH_ALGORITHM

      private static final String HASH_ALGORITHM
      The hashing algorithm used to hash passwords
      See Also:
    • messageDigest

      private static final MessageDigest messageDigest
      The MessageDigest object used to perform the hashing
  • Constructor Details

    • PasswordHashManager

      public PasswordHashManager()
  • Method Details

    • hashPassword

      public static String hashPassword(String password)
      Hashes the specified password using the SHA3-256 algorithm.
      Parameters:
      password - the password to be hashed
      Returns:
      a byte array containing the hashed password