Interface PasswordHasher

    • Method Detail

      • createHash

        String createHash​(char[] password)
      • validatePassword

        boolean validatePassword​(char[] password,
                                 String expectedHash)
        Validates a password using a hash.
        Parameters:
        password - the password to check
        expectedHash - the hash of the valid password
        Returns:
        true if the password is correct, false if not