class bcrypt extends base
Constants
PREFIX |
|
Methods
__construct(config $config, helper $helper, int $cost_factor = 10)
Constructor of passwords driver object |
||
bool |
is_supported()
Check if hash type is supported |
from base |
bool |
is_legacy()
Check if hash type is a legacy hash type |
from base |
bool |
needs_rehash(string $hash)
Check if password needs to be rehashed |
|
string |
get_settings_only(string $hash, bool $full = false)
Get only the settings of the specified hash |
|
string |
get_prefix()
Returns the hash prefix |
|
bool|string |
hash(string $password, $salt = '')
Hash the password |
|
bool |
check(string $password, string $hash, array $user_row = array())
Check the password against the supplied hash |
Details
at line 30
public
__construct(config $config, helper $helper, int $cost_factor = 10)
Constructor of passwords driver object
in base at line 42
public bool
is_supported()
Check if hash type is supported
in base at line 50
public bool
is_legacy()
Check if hash type is a legacy hash type
at line 49
public bool
needs_rehash(string $hash)
Check if password needs to be rehashed
at line 121
public string
get_settings_only(string $hash, bool $full = false)
Get only the settings of the specified hash
at line 41
public string
get_prefix()
Returns the hash prefix
at line 61
public bool|string
hash(string $password, $salt = '')
Hash the password
at line 93
public bool
check(string $password, string $hash, array $user_row = array())
Check the password against the supplied hash