ParagonIE_Sodium_Compat::crypto_pwhash_is_available()public staticWP 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.

{} Это метод класса: ParagonIE_Sodium_Compat{}

Хуков нет.

Возвращает

true|false.

Использование

$result = ParagonIE_Sodium_Compat::crypto_pwhash_is_available();

Код ParagonIE_Sodium_Compat::crypto_pwhash_is_available() WP 6.0

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