package Default

 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) : boolean

Parameters

$password

string

The password to hash

$hash

string

The supplied hash to validate

Returns

booleanDoes the password validate against the hash