SDGB support + extras

This commit is contained in:
Keeboy99
2025-06-02 16:31:57 +12:00
parent 33b7db0e98
commit 02bfc7dba2
7 changed files with 55 additions and 5 deletions

View File

@ -606,9 +606,9 @@ class AllnetServlet:
return decrypted[16:].decode("utf-8")
def enc_lite(self, key, iv, data):
decrypted = pad(bytes([0] * 16) + data.encode('utf-8'), 16)
unencrypted = pad(bytes([0] * 16) + data.encode('utf-8'), 16)
cipher = AES.new(bytes(key), AES.MODE_CBC, iv)
encrypted = cipher.encrypt(decrypted)
encrypted = cipher.encrypt(unencrypted)
return encrypted
class BillingServlet: