AES+Base64 双重解密 python3 代码。

from Crypto.Cipher import AES
import binascii,base64

text = ‘IIjUxJefHa5Sq1cj13XZWw==’
key = ‘rtyu#ISearch*654’
relKey = str.encode(key)

aes = AES.new(relKey, AES.MODE_ECB)

base64_decrypted = base64.decodebytes(text.encode(encoding=‘utf-8’))

decrypted_text = str(aes.decrypt(base64_decrypted),encoding=‘utf-8’).replace(‘\0’,'')

print(decrypted_text)

AES+Base64 双重解密 python3 代码。