def xtob(data, sep=''):
    """Interpret the hex encoding of a blob (string)."""
    # remove the non-hex characters
    data = re.sub("[^0-9a-fA-F]", '', data)

    # interpret the hex
    return binascii.unhexlify(data)
def xtob ( data , sep = '' ) : data = re . sub ( "[^0-9a-fA-F]" , '' , data ) return binascii . unhexlify ( data )
Interpret the hex encoding of a blob (string).