u0007
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -10,7 +10,7 @@ def aes_decrypt_cbc(data, key, iv): | ... | @@ -10,7 +10,7 @@ def aes_decrypt_cbc(data, key, iv): |
10 | try: | 10 | try: |
11 | cipher = AES.new(key.encode(), AES.MODE_CBC, iv.encode()) | 11 | cipher = AES.new(key.encode(), AES.MODE_CBC, iv.encode()) |
12 | res = cipher.decrypt(b64decode(data)) | 12 | res = cipher.decrypt(b64decode(data)) |
13 | res = res.decode('utf-8').replace(r'\x0e', '').replace(r'\u007', '') | 13 | res = res.decode('utf-8').replace('\x0e', '').replace('\u0007', '') |
14 | except Exception as e: | 14 | except Exception as e: |
15 | res = '' | 15 | res = '' |
16 | return res | 16 | return res | ... | ... |
-
Please register or sign in to post a comment