ParagonIE_Sodium_Compat::crypto_pwhash_is_available()
!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() 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; }