PHPassHandler

Implements HandlerInterface, CheckIfRehashNeededHandlerInterface

Password handler for PHPass hashed passwords

deprecated
since

4.0.0

deprecated

4.0 will be removed in 6.0 Support for PHPass hashed passwords will be removed without replacement

package

Joomla CMS

Methods

checkIfRehashNeeded

Check if the password requires rehashing

checkIfRehashNeeded( hash) : 
since

4.0.0

Arguments

hash

stringThe password hash to check

Response

bool

getPasswordHash

Get an instance of the PasswordHash class

getPasswordHash() : \PasswordHash
since

4.0.0

Response

PasswordHash

hashPassword

Generate a hash for a plaintext password

hashPassword( plaintext, mixed||string|int options = []) : 
since

4.0.0

Arguments

plaintext

stringThe plaintext password to validate

options

array<string|int, mixed>Options for the hashing operation

Response

string

isSupported

Check that the password handler is supported in this environment

isSupported() : 
static
since

4.0.0

Response

bool

validatePassword

Validate a password

validatePassword( plaintext,  hashed) : 
since

4.0.0

Arguments

plaintext

stringThe plain text password to validate

hashed

stringThe password hash to validate against

Response

bool