chuni: fix encryption

This commit is contained in:
Hay1tsme 2023-03-16 21:42:43 -04:00
parent 71eec6e34d
commit a6e9e80bc7

View File

@ -244,9 +244,9 @@ class ChuniServlet:
padded = pad(zipped, 16)
crypt = AES.new(
bytes.fromhex(self.game_cfg.crypto.keys[str(internal_ver)][0]),
bytes.fromhex(self.game_cfg.crypto.keys[internal_ver][0]),
AES.MODE_CBC,
bytes.fromhex(self.game_cfg.crypto.keys[str(internal_ver)][1]),
bytes.fromhex(self.game_cfg.crypto.keys[internal_ver][1]),
)
return crypt.encrypt(padded)