mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16266] Fix argon2 driver issue for Sodium implementation
PHPBB3-16266
This commit is contained in:
@@ -57,6 +57,18 @@ abstract class base_native extends base
|
||||
return password_hash($password, $this->get_algo_value(), $this->get_options());
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if Sodium implementation for argon2 algorithm is being used
|
||||
*
|
||||
* @link https://wiki.php.net/rfc/sodium.argon.hash
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_sodium()
|
||||
{
|
||||
return defined('PASSWORD_ARGON2_PROVIDER') && PASSWORD_ARGON2_PROVIDER == 'sodium';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user