sodium_hex2bin

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Decodes a hexadecimally encoded binary string
<?php sodium_hex2bin(string $string, string $ignore = ""): string