def encpyptwithXor(param):
return [i ^ 0x5 for i in param.encode()]
def byte_to_str(alist,bolean,length ) -> list:
res = [0 for _ in range(length * 2)]
bo = False
i = 0
while i < length:
b = alist[i + bolean] & 0xFF
bo1 = bo + True
res[bo] = s[b >> 4]
bo = bo1 + True
res[bo1] = s[b & 0xF]
i += 1
return res
return [i ^ 0x5 for i in param.encode()]
def byte_to_str(alist,bolean,length ) -> list:
res = [0 for _ in range(length * 2)]
bo = False
i = 0
while i < length:
b = alist[i + bolean] & 0xFF
bo1 = bo + True
res[bo] = s[b >> 4]
bo = bo1 + True
res[bo1] = s[b & 0xF]
i += 1
return res