sodium_crypto_pwhash

The timeline below displays how wordpress function sodium_crypto_pwhash has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * @see ParagonIE_Sodium_Compat::crypto_pwhash()
 * @param int $length
 * @param string $passwd
 * @param string $salt
 * @param int $opslimit
 * @param int $memlimit
 * @param int|null $algo
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_crypto_pwhash($length, $passwd, $salt, $opslimit, $memlimit, $algo = null)
{
    return ParagonIE_Sodium_Compat::crypto_pwhash($length, $passwd, $salt, $opslimit, $memlimit, $algo);
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_pwhash()
 * @param int $outlen
 * @param string $passwd
 * @param string $salt
 * @param int $opslimit
 * @param int $memlimit
 * @param int|null $algo
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null)
{
    return ParagonIE_Sodium_Compat::crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo);
}