1
0
Fork 0

Removed debug print

This commit is contained in:
JoshuaMKW 2020-08-23 23:12:18 -05:00
parent d66af69b99
commit d0e7b8c423

View file

@ -245,13 +245,11 @@ class CodeHandler:
def encrypt_data(self, key: int):
self.geckoCodes.codeList.seek(0)
print(f'real key: {key:X}')
i = 0
while True:
try:
packet = tools.read_uint32(self.geckoCodes.codeList)
self.geckoCodes.codeList.seek(-4, 1)
#print(hex(self.geckoCodes.codeList.tell()), hex(packet), hex((packet^key) & 0xFFFFFFFF), hex(key))
tools.write_uint32(self.geckoCodes.codeList, (packet^key) & 0xFFFFFFFF)
key += (i ^ key) & 0xFFFFFFFF
if key > 0xFFFFFFFF: