Argon2idHandler

Implements HandlerInterface

Password handler for Argon2id hashed passwords

since

1.3.0

package

Joomla Framework

Methods

hashPassword

Generate a hash for a plaintext password

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

1.3.0

throws

UnsupportedPasswordHandlerExceptionif the password handler is not supported

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

1.3.0

Response

bool

validatePassword

Validate a password

validatePassword( plaintext,  hashed) : 
since

1.3.0

throws

UnsupportedPasswordHandlerExceptionif the password handler is not supported

Arguments

plaintext

stringThe plain text password to validate

hashed

stringThe password hash to validate against

Response

bool