diff options
Diffstat (limited to 'phpBB/phpbb/passwords/driver/base_native.php')
-rw-r--r-- | phpBB/phpbb/passwords/driver/base_native.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/phpbb/passwords/driver/base_native.php b/phpBB/phpbb/passwords/driver/base_native.php index 87498327f9..31d3465165 100644 --- a/phpBB/phpbb/passwords/driver/base_native.php +++ b/phpBB/phpbb/passwords/driver/base_native.php @@ -58,6 +58,18 @@ abstract class base_native extends base } /** + * 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} */ public function is_supported() |