Back to Joomla project (class list)

Class PHPassHandler - list of methods

Password handler for PHPass hashed passwords

Extends

Package: Joomla\CMS\Authentication\Password
Copyright: (C) 2017 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Authentication/Password/PHPassHandler.php
Project: Joomla

Method Summary

public bool
(string $hash)

Check if the password requires rehashing
Parameters
  • string $hash The password hash to check
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: checkIfRehashNeeded Source Code

public string
(mixed $plaintext, array $options = [])

Generate a hash for a plaintext password
Parameters
  • string $pla intext The plaintext password to validate
  • array $options Options for the hashing operation
Returns
  • string
Since
  • 4.0.0
Show source code of this method: hashPassword Source Code

public static bool
()

Check that the password handler is supported in this environment
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: isSupported Source Code

public bool
(mixed $plaintext, mixed $hashed)

Validate a password
Parameters
  • string $pla intext The plain text password to validate
  • string $hashed The password hash to validate against
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: validatePassword Source Code

private \PasswordHash
()

Get an instance of the PasswordHash class
Returns
  • \PasswordHash
Since
  • 4.0.0
Show source code of this method: getPasswordHash Source Code

Tags Summary

Since
4.0.0
Deprecated
5.0
Support for PHPass hashed passwords will be removed