Documentation

Hasher

Table of Contents

check()  : bool
Check the given plain value against a hash.
make()  : string
Hash the given value.
needsRehash()  : bool
Check if the given hash has been hashed using the given options.

Methods

check()

Check the given plain value against a hash.

public check(string $value, string $hashedValue[, array<string|int, mixed> $options = [] ]) : bool
Parameters
$value : string
$hashedValue : string
$options : array<string|int, mixed> = []
Return values
bool

make()

Hash the given value.

public make(string $value[, array<string|int, mixed> $options = [] ]) : string
Parameters
$value : string
$options : array<string|int, mixed> = []
Return values
string

needsRehash()

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

public needsRehash(string $hashedValue[, array<string|int, mixed> $options = [] ]) : bool
Parameters
$hashedValue : string
$options : array<string|int, mixed> = []
Return values
bool

Search results