/**
* @param string $encoded
* @param int $variant
* @param string $ignore
* @return string
* @throws SodiumException
*/
public static function base642bin($encoded,
$variant,
$ignore = ''
) { /* Type checks: */
ParagonIE_Sodium_Core_Util::
declareScalarType($encoded, 'string', 1
);
/** @var string $encoded */
$encoded =
(string) $encoded;
if (ParagonIE_Sodium_Core_Util::
strlen($encoded) === 0
) { return '';
} // Just strip before decoding
if (!
empty($ignore)) { $encoded =
str_replace($ignore, '',
$encoded);
}