Klasse PasswordHasher

java.lang.Object
ch.framedev.simplejavautils.PasswordHasher

public class PasswordHasher extends Object
  • Konstruktordetails

    • PasswordHasher

      public PasswordHasher()
  • Methodendetails

    • hashPassword

      public byte[] hashPassword(String password)
      Hashes the given password using the PBKDF2 algorithm.
      Parameter:
      password - The password to be hashed.
      Gibt zurück:
      The hashed password.
    • verifyPassword

      public boolean verifyPassword(String password, byte[] expectedHashResult)
      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.