interface HasherInterface

Hahser interface.

Methods

string
create(string $password)

Creates a password hash.

bool
verify(string $password, string $hash)

Verifies that the password matches the hash.

bool
needsRehash(string $hash)

Returns TRUE if the password needs rehashing and FALSE if not.

Details

at line 23
string create(string $password)

Creates a password hash.

Parameters

string $password Password

Return Value

string

at line 32
bool verify(string $password, string $hash)

Verifies that the password matches the hash.

Parameters

string $password Password
string $hash Hash

Return Value

bool

at line 40
bool needsRehash(string $hash)

Returns TRUE if the password needs rehashing and FALSE if not.

Parameters

string $hash Hash

Return Value

bool