cmd执行命令:pip install pycryptodome
1 # -*- coding: utf-8 -*- 2 # __author__ = 'Carry' 3 4 import base64 5 from Crypto.Cipher import AES 6 7 8 # str不是16的倍数那就补足为16的倍数 9 def add_to_16(value): 10 while len(value) % 16 != 0: 11 value += '