PHP.nl

sodium_hex2bin

sodium_hex2bin

Decodes a hexadecimally encoded binary string

string **sodium_hex2bin** string $string string $ignore

Decodes a hexadecimally encoded binary string.

Like , is resistant to side-channel attacks while is not. sodium_bin2hex``sodium_hex2bin``hex2bin

stringHexadecimal representation of data.

ignoreOptional string argument for characters to ignore.

Returns the binary representation of the given data. string