Methods |
public
|
__construct(Algorithm $algorithm, array{iterations?: int, length?: int} $options = [])
|
#
|
public
|
hash(string $password, array{iterations?: int, length?: int} $options = [], string $salt = ''): string
Creates a new password hash using a strong one-way hashing algorithm.
Creates a new password hash using a strong one-way hashing algorithm.
Implements
|
#
|
public
|
needsRehash(string $hash, array $options = []): bool
Checks if the given hash matches the given options.
Checks if the given hash matches the given options.
Implements
|
#
|
public
|
verify(string $password, string $hash, string $salt = ''): bool
Verifies that a password matches a hash.
Verifies that a password matches a hash.
Implements
|
#
|
public
|
valid(): bool
Checks if the hash driver can be used.
Checks if the hash driver can be used.
Implements
|
#
|