WordPress at a glance
function is not described

ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Compat{}

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256( $outlen, $passwd, $salt, $opslimit, $memlimit );
$outlen(int) (required)
-
$passwd(string) (required)
-
$salt(string) (required)
-
$opslimit(int) (required)
-
$memlimit(int) (required)
-

Code of ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256() WP 5.7

<?php
public static function crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit)
{
    ParagonIE_Sodium_Core_Util::declareScalarType($outlen, 'int', 1);
    ParagonIE_Sodium_Core_Util::declareScalarType($passwd, 'string', 2);
    ParagonIE_Sodium_Core_Util::declareScalarType($salt,  'string', 3);
    ParagonIE_Sodium_Core_Util::declareScalarType($opslimit, 'int', 4);
    ParagonIE_Sodium_Core_Util::declareScalarType($memlimit, 'int', 5);

    if (self::useNewSodiumAPI()) {
        return (string) sodium_crypto_pwhash_scryptsalsa208sha256(
            (int) $outlen,
            (string) $passwd,
            (string) $salt,
            (int) $opslimit,
            (int) $memlimit
        );
    }
    if (self::use_fallback('crypto_pwhash_scryptsalsa208sha256')) {
        return (string) call_user_func(
            '\\Sodium\\crypto_pwhash_scryptsalsa208sha256',
            (int) $outlen,
            (string) $passwd,
            (string) $salt,
            (int) $opslimit,
            (int) $memlimit
        );
    }
    // This is the best we can do.
    throw new SodiumException(
        'This is not implemented, as it is not possible to implement Scrypt with acceptable performance in pure-PHP'
    );
}