以下内容来源openai
python aes加解密脚本
import base64
from Crypto.Cipher import AES
from Crypto import Random
# 需要提前指定加密的密钥
key = b'1234567890123456'
# 要加密的文本
plaintext = 'Hello World!'
# 填充文本,使其长度为16的整数倍
plaintext = plaintext + (16 - len(plaintext) % 16) * ' '
...