interface Hasher

Methods

array
info(string $hashedValue)

Get information about the given hashed value.

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

Hash the given value.

bool
check(string $value, string|null $hashedValue, array $options = [])

Check the given plain value against a hash.

bool
needsRehash(string|null $hashedValue, array $options = [])

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

Details

at line 14
array info(string $hashedValue)

Get information about the given hashed value.

Parameters

string $hashedValue

Return Value

array

at line 19
string make(string $value, array $options = [])

Hash the given value.

Parameters

string $value
array $options

Return Value

string

at line 24
bool check(string $value, string|null $hashedValue, array $options = [])

Check the given plain value against a hash.

Parameters

string $value
string|null $hashedValue
array $options

Return Value

bool

at line 29
bool needsRehash(string|null $hashedValue, array $options = [])

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

Parameters

string|null $hashedValue
array $options

Return Value

bool