class manager
Properties
$algorithms | Service collection of hashing algorithms Needs to be public for passwords helper | |
$convert_flag | Password convert flag. |
Methods
__construct(config $config, array $hashing_algorithms, helper $helper, array $defaults)
Construct a passwords object |
||
object|bool |
detect_algorithm(string $hash)
Detect the hash type of the supplied hash |
|
string|bool |
hash(string $password, string $type = '')
Hash supplied password |
|
string|bool |
check(string $password, string $hash, array $user_row = array())
Check supplied password against hash and set convert_flag if password needs to be converted to different format (preferrably newer one) |
|
string|bool |
combined_hash_password(string $password_hash, string $type)
Create combined hash from already hashed password |
|
bool |
check_combined_hash(string $password, array $stored_hash_type, string $hash)
Check combined password hash against the supplied password |
Details
at line 61
public
__construct(config $config, array $hashing_algorithms, helper $helper, array $defaults)
Construct a passwords object
at line 134
public object|bool
detect_algorithm(string $hash)
Detect the hash type of the supplied hash
at line 186
public string|bool
hash(string $password, string $type = '')
Hash supplied password
at line 230
public string|bool
check(string $password, string $hash, array $user_row = array())
Check supplied password against hash and set convert_flag if password needs to be converted to different format (preferrably newer one)
at line 298
public string|bool
combined_hash_password(string $password_hash, string $type)
Create combined hash from already hashed password
at line 347
public bool
check_combined_hash(string $password, array $stored_hash_type, string $hash)
Check combined password hash against the supplied password