bcrypt
class bcrypt extends base
Constants
PREFIX |
|
Properties
protected config | $config | from base | |
protected helper | $helper | from base | |
protected string | $name | from base | |
protected int | $cost_factor |
Methods
__construct(config $config, helper $helper, int $cost_factor = 10)
Constructor of passwords driver object
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
string
get_random_salt()
Get a random salt value with a length of 22 characters
Details
at line 30
__construct(config $config, helper $helper, int $cost_factor = 10)
Constructor of passwords driver object
in
base at line 42
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
at line 49
bool
needs_rehash(string $hash)
Check if password needs to be rehashed
at line 121
string
get_settings_only(string $hash, bool $full = false)
Get only the settings of the specified hash
at line 41
string
get_prefix()
Returns the hash prefix
at line 61
bool|string
hash(string $password, $salt = '')
Hash the password
at line 93
bool
check(string $password, string $hash, array $user_row = array())
Check the password against the supplied hash
at line 113
protected string
get_random_salt()
Get a random salt value with a length of 22 characters