Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 24a4e2d

Browse files
[Security/Core] work around sodium_compat issue
1 parent e527570 commit 24a4e2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/Encoder/Argon2iPasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function isSupported()
2626
return true;
2727
}
2828

29-
return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
29+
return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.9', '>=');
3030
}
3131

3232
/**

0 commit comments

Comments
 (0)