sodium_unpad

The timeline below displays how wordpress function sodium_unpad 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::pad()
 * @param string $padded
 * @param int $block_size
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_unpad($padded, $block_size)
{
    return ParagonIE_Sodium_Compat::unpad($padded, $block_size, true);
}

WordPress Version: 3.1

/**
 * @see ParagonIE_Sodium_Compat::pad()
 * @param string $padded
 * @param int $blockSize
 * @return int
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_unpad($padded, $blockSize)
{
    return ParagonIE_Sodium_Compat::unpad($padded, $blockSize, true);
}