argon2id
class argon2id extends argon2i
Properties
protected config | $config | from base | |
protected helper | $helper | from base | |
protected string | $name | from base | |
protected int | $memory_cost | from argon2i | |
protected int | $threads | from argon2i | |
protected int | $time_cost | from argon2i |
Methods
__construct(config $config, helper $helper, int $memory_cost = 65536, int $threads = 2, int $time_cost = 4)
Constructor of passwords driver object
from
argon2i
string
get_settings_only(string $hash, bool $full = false)
Get only the settings of the specified hash
from
base
string
get_algo_name()
Return the constant name for this driver's algorithm
bool
check(string $password, string $hash, array $user_row = [])
Check the password against the supplied hash
from
base_native
string
get_prefix()
Returns the hash prefix
Details
in
argon2i at line 36
__construct(config $config, helper $helper, int $memory_cost = 65536, int $threads = 2, int $time_cost = 4)
Constructor of passwords driver object
in
base_native at line 63
bool
is_supported()
Check if hash type is supported
in
base at line 50
bool
is_legacy()
Check if hash type is a legacy hash type
in
base_native at line 71
bool
needs_rehash(string $hash)
Check if password needs to be rehashed
in
base at line 66
string
get_settings_only(string $hash, bool $full = false)
Get only the settings of the specified hash
at line 21
string
get_algo_name()
Return the constant name for this driver's algorithm
in
argon2i at line 62
array
get_options()
Return the options set for this driver instance
in
base_native at line 37
bool
check(string $password, string $hash, array $user_row = [])
Check the password against the supplied hash
in
base_native at line 47
int
get_algo_value()
Return the value for this driver's algorithm
in
base_native at line 55
bool|string
hash(string $password)
Hash the password
at line 29
string
get_prefix()
Returns the hash prefix