sodium_hex2bin

The timeline below displays how wordpress function sodium_hex2bin 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::hex2bin()
 * @param string $string
 * @param string $ignore
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_hex2bin($string, $ignore = '')
{
    return ParagonIE_Sodium_Compat::hex2bin($string, $ignore);
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::hex2bin()
 * @param string $string
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_hex2bin($string)
{
    return ParagonIE_Sodium_Compat::hex2bin($string);
}