BCryptHandler

Implements \Joomla\Authentication\Password\HandlerInterface

Password handler for BCrypt hashed passwords

since

1.2.0

Methods

hashPassword

Generate a hash for a plaintext password

hashPassword(string $plaintext, array $options = array()) : string
since

1.2.0

Arguments

$plaintext

stringThe plaintext password to validate

$options

arrayOptions for the hashing operation

Response

string

isSupported

Check that the password handler is supported in this environment

isSupported() : boolean
static
since

1.2.0

Response

boolean

validatePassword

Validate a password

validatePassword(string $plaintext, string $hashed) : boolean
since

1.2.0

Arguments

$plaintext

stringThe plain text password to validate

$hashed

stringThe password hash to validate against

Response

boolean