ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_is_available() public WP 1.0
!Exclusive to sodium_compat!
This returns TRUE if the native crypto_pwhash API is available by libsodium. This returns FALSE if only sodium_compat is available.
{} It's a method of the class: ParagonIE_Sodium_Compat{}
No Hooks.
Return
true|false
. Null. Nothing.
Usage
$result = ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_is_available();
Code of ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_is_available() ParagonIE Sodium Compat::crypto pwhash scryptsalsa208sha256 is available WP 5.7
public static function crypto_pwhash_scryptsalsa208sha256_is_available()
{
if (self::useNewSodiumAPI()) {
return true;
}
if (self::use_fallback('crypto_pwhash_scryptsalsa208sha256')) {
return true;
}
return false;
}