[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Authentication/Password/ -> PHPassHandler.php (summary)

Joomla! Content Management System

Copyright: (C) 2017 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 93 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPassHandler:: (5 methods):
  checkIfRehashNeeded()
  hashPassword()
  isSupported()
  validatePassword()
  getPasswordHash()


Class: PHPassHandler  - X-Ref

Password handler for PHPass hashed passwords

checkIfRehashNeeded(string $hash)   X-Ref
Check if the password requires rehashing

param: string  $hash  The password hash to check
return: boolean

hashPassword($plaintext, array $options = [])   X-Ref
Generate a hash for a plaintext password

param: string  $plaintext  The plaintext password to validate
param: array   $options    Options for the hashing operation
return: string

isSupported()   X-Ref
Check that the password handler is supported in this environment

return: boolean

validatePassword($plaintext, $hashed)   X-Ref
Validate a password

param: string  $plaintext  The plain text password to validate
param: string  $hashed     The password hash to validate against
return: boolean

getPasswordHash()   X-Ref
Get an instance of the PasswordHash class

return: \PasswordHash



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer