interface Hasher (View source)

Methods

string
make(string $value, array $options = array())

Hash the given value.

bool
check(string $value, string $hashedValue, array $options = array())

Check the given plain value against a hash.

bool
needsRehash(string $hashedValue, array $options = array())

Check if the given hash has been hashed using the given options.

Details

at line line 14
string make(string $value, array $options = array())

Hash the given value.

Parameters

string $value
array $options

Return Value

string

at line line 24
bool check(string $value, string $hashedValue, array $options = array())

Check the given plain value against a hash.

Parameters

string $value
string $hashedValue
array $options

Return Value

bool

at line line 33
bool needsRehash(string $hashedValue, array $options = array())

Check if the given hash has been hashed using the given options.

Parameters

string $hashedValue
array $options

Return Value

bool