ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_is_available

Advertisement

Summery Summery

!Exclusive to sodium_compat!

Syntax Syntax

ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_is_available()

Description Description

This returns TRUE if the native crypto_pwhash API is available by libsodium. This returns FALSE if only sodium_compat is available.

Return Return

(bool)

Source Source

File: wp-includes/sodium_compat/src/Compat.php

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

Advertisement

Advertisement

Leave a Reply