Methods |
public
|
hash(
string $password,
array{cost?: int, iterations?: int, length?: int, opslimit?: int, memlimit?: int, memory_cost?: int, threads?: int, time_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.
Throws
Implemented by
|
#
|
public
|
needsRehash(
string $hash,
array{cost?: int, iterations?: int, length?: int, opslimit?: int, memlimit?: int, memory_cost?: int, threads?: int, time_cost?: int} $options = [],
): bool
Checks if the given hash matches the given options.
Checks if the given hash matches the given options.
Implemented by
|
#
|
public
|
verify(string $password, string $hash): bool
Verifies that a password matches a hash.
Verifies that a password matches a hash.
Implemented by
|
#
|
public
|
valid(): bool
Checks if the hash driver can be used.
Checks if the hash driver can be used.
Implemented by
|
#
|
public
|
isValidPassword(string $password): bool
Checks if the password is without defects before hashing.
Checks if the password is without defects before hashing.
Implemented by
|
#
|