AES_128_CBC

# from itertools import product
from Crypto.Cipher import AES
import Crypto.Cipher.AES
from binascii import hexlify, unhexlify
key = unhexlify('225BF35EC786714546DC253EBD2032AF')
IV = unhexlify('A13C1617F6E0C1054D3907BF92B09775')
# plaintext1 = unhexlify('6bc1bee22e409f96e93d7e117393172a')
# plaintext2 = unhexlify('ae2d8a571e03ac9c9eb76fac45af8e51')
# plaintext3 = unhexlify('30c81c46a35ce411e5fbc1191a0a52ef')
cipher = AES.new(key, AES.MODE_CBC, IV)
# ciphertext = cipher.encrypt(plaintext1 + plaintext2 + plaintext3)
# hexlify(ciphertext)
ciphertext = unhexlify('a6acc35bedc4e6df3ede1997da2e1802')
ciphertext1 = unhexlify('4e86336e92afcd193f266b4729792b5f')

decipher = AES.new(key, AES.MODE_CBC, IV)
decipher1 = AES.new(key, AES.MODE_CBC, IV)

plaintext = decipher.decrypt(ciphertext)
print (hexlify(plaintext))


plaintext1 = decipher1.decrypt(ciphertext1)
print (hexlify(plaintext1))

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值