extends |
HashInterface |
---|
Interface for hashers needing to pass a salt.
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 $salt = '',
): string
|
# |
public
|
verify(string $password, string $hash, string $salt = ''): bool
|
# |
Methods inherited from Nexus\Password\HashInterface |
---|
needsRehash(), valid(), isValidPassword() |
Constants inherited from Nexus\Password\HashInterface |
---|
|