2a689f4f by 冯轩

MOD:解密特殊字符

1 parent 827dcb95
...@@ -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('\x0e', '') 13 res = res.decode('utf-8').replace('\x0e', '').replace('\u007', '')
14 except Exception as e: 14 except Exception as e:
15 res = '' 15 res = ''
16 return res 16 return res
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!