argon2i
class argon2i extends base_native
Properties
protected config | $config | from base | |
protected helper | $helper | from base | |
protected string | $name | from base | |
protected int | $memory_cost | ||
protected int | $threads | ||
protected int | $time_cost |
Methods
__construct(config $config, helper $helper, int $memory_cost = 65536, int $threads = 2, int $time_cost = 4)
Constructor of passwords driver object
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
array
get_options()
Return the options set for this driver instance
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
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 54
string
get_algo_name()
Return the constant name for this driver's algorithm
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 74
string
get_prefix()
Returns the hash prefix