def binary_to_str(b_nb): ret = '' array = b_nb.split(" ") for x in array: d_nb = nbconverter.xtod(x,2,None) ret = ret + chr(d_nb) return ret
def hexa_to_str(h_nb): ret = '' array = h_nb.split(" ") for x in array: d_nb = nbconverter.xtod(x,16,None) ret = ret + chr(d_nb) return ret