diff --git a/Core/Encoder/Argon2iPasswordEncoder.php b/Core/Encoder/Argon2iPasswordEncoder.php index df6d40ce5..67451322a 100644 --- a/Core/Encoder/Argon2iPasswordEncoder.php +++ b/Core/Encoder/Argon2iPasswordEncoder.php @@ -47,7 +47,7 @@ public static function isSupported() return true; } - return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium'); + return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.9', '>='); } /**