1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 17:27:16 +02:00

[ticket/16266] Refactor patch using argon2 predefined constants

PHPBB3-16266
This commit is contained in:
rxu
2019-12-28 12:20:51 +07:00
parent d000717d34
commit 3669849368
2 changed files with 5 additions and 23 deletions

View File

@@ -57,25 +57,6 @@ 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()
{
static $is_sodium;
if (!isset($is_sodium))
{
$is_sodium = defined('PASSWORD_ARGON2_PROVIDER') && PASSWORD_ARGON2_PROVIDER == 'sodium';
}
return $is_sodium;
}
/**
* {@inheritdoc}
*/