WordPress at a glance
function is not described

ParagonIE_Sodium_Compat::crypto_pwhash_str() 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_str( $passwd, $opslimit, $memlimit );
$passwd(string) (required)
-
$opslimit(int) (required)
-
$memlimit(int) (required)
-

Code of ParagonIE_Sodium_Compat::crypto_pwhash_str() WP 5.7.1

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

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