Methods |
public
|
__construct(Algorithm $algorithm, array{cost?: int} $options = [])
|
#
|
public
|
hash(string $password, array{cost?: int} $options = []): 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{cost?: int} $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): 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
|
#
|