Argon2i
class Argon2i extends Hasher
Argon2i hasher.
Properties
protected array | $options | Algorithm options. | from Hasher |
Methods
int|string
getAlgorithm()
Returns the algorithm type.
bool
verify(string $password, string $hash)
Verifies that the password matches the hash.
from Hasher
bool
needsRehash(string $hash)
Returns TRUE if the password needs rehashing and FALSE if not.
from Hasher
Details
in Hasher at line 31
__construct(array $options = [])
Constructor.
in Hasher at line 42
protected array
normalizeOptions(array $options)
Normalizes the algorithm options.
at line 18
protected int|string
getAlgorithm()
Returns the algorithm type.
in Hasher at line 57
string
create(string $password)
Creates a password hash.
in Hasher at line 72
bool
verify(string $password, string $hash)
Verifies that the password matches the hash.
in Hasher at line 80
bool
needsRehash(string $hash)
Returns TRUE if the password needs rehashing and FALSE if not.