概述
# 创建AES对象解密
d.rfind("}")可根据情况不同,匹配不一样的字符串“}”
def decrypt1(text): key = 'w28Cz694s63kBYk4'.encode('utf-8') iv = b'4kYBk36s496zC82w' mode = AES.MODE_CBC cryptos = AES.new(key, mode, iv) plain_text = cryptos.decrypt(a2b_hex(text)) d = bytes.decode(plain_text).rstrip('