SDGB support + extras
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user