[Security/Core] Don't use ParagonIE_Sodium_Compat
This commit is contained in:
parent
57d73fcac3
commit
61ea53d57f
@ -26,10 +26,6 @@ class Argon2iPasswordEncoder extends BasePasswordEncoder implements SelfSaltingE
|
||||
return true;
|
||||
}
|
||||
|
||||
if (class_exists('ParagonIE_Sodium_Compat') && method_exists('ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available')) {
|
||||
return \ParagonIE_Sodium_Compat::crypto_pwhash_is_available();
|
||||
}
|
||||
|
||||
return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user