WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Compat::crypto_pwhash_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.




$result = ParagonIE_Sodium_Compat::crypto_pwhash_is_available();

Code of ParagonIE_Sodium_Compat::crypto_pwhash_is_available() WP 5.8.3

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