phpBB API Documentation
Class

phpbb\passwords\driver\base

abstract class base implements rehashable_driver_interface

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
public __construct(config $config, helper $helper)

Constructor of passwords driver object

Parameters

config $config phpBB config
helper $helper Password driver helper

at line 42
public bool is_supported()

Check if hash type is supported

Return Value

bool True if supported, false if not

at line 50
public 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
public 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
public 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