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

Commit

Permalink
[Security/Core] work around sodium_compat issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 26, 2019
1 parent e527570 commit 24a4e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Encoder/Argon2iPasswordEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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', '>=');
}

/**
Expand Down

0 comments on commit 24a4e2d

Please sign in to comment.