Methods

Create a password hash for a given plain text password

create(string $password) : string

Parameters

$password

string

The password to hash

Returns

stringThe formatted password hash

Verify a password hash against a given plain text password

verify(string $password, string $hash) : bool

Parameters

$password

string

The password to hash

$hash

string

The supplied hash to validate

Returns

boolDoes the password validate against the hash