abstract class base implements rehashable_driver_interface

Properties

protected config $config
protected helper $helper
protected string $name

Methods

__construct(config $config, helper $helper)

Constructor of passwords driver object

bool
is_supported()

Check if hash type is supported

bool
is_legacy()

Check if hash type is a legacy hash type

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

Details

at line 33
__construct(config $config, helper $helper)

Constructor of passwords driver object

Parameters

config $config

phpBB config

helper $helper

Password driver helper

at line 42
bool is_supported()

Check if hash type is supported

Return Value

bool

True if supported, false if not

at line 50
bool is_legacy()

Check if hash type is a legacy hash type

Return Value

bool

True if it's a legacy hash type, false if not

at line 58
bool needs_rehash(string $hash)

Check if password needs to be rehashed

Parameters

string $hash

Hash to check for rehash

Return Value

bool

True if password needs to be rehashed, false if not

at line 66
string get_settings_only(string $hash, bool $full = false)

Get only the settings of the specified hash

Parameters

string $hash

Password hash

bool $full

Return full settings or only settings related to the salt

Return Value

string

String containing the hash settings