WordPress at Your Fingertips
function is not described

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.

Usage

$result = ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_is_available();

Code of ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_is_available() WP 5.8.2

public static function crypto_pwhash_scryptsalsa208sha256_is_available()
{
    if (self::useNewSodiumAPI()) {
        return true;
    }
    if (self::use_fallback('crypto_pwhash_scryptsalsa208sha256')) {
        return true;
    }
    return false;
}