hex_to_bin(
hex) ->bin,err
Convert a hexadecimal string to binary
Accepts uppercase or lowercase ASCII hex digits of even length,
including the empty string. Returns nil and a reason if hex is not a
string, has odd length, or contains non-hex characters.