58b3b324 by 冯轩

Merge branch 'feature/CHINARPA-5092'

2 parents 4e23f1f3 52864fbd
...@@ -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', '').replace('\u007', '') 13 res = res.decode('utf-8').replace(r'\x0e', '').replace(r'\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!