We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa9056 commit ba5ee7cCopy full SHA for ba5ee7c
Encoder/Argon2iPasswordEncoder.php
@@ -26,7 +26,7 @@ public static function isSupported()
26
return true;
27
}
28
29
- return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
+ return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.9', '>=');
30
31
32
/**
0 commit comments