1 Star 0 Fork 1

Free/demo

forked from Free/project 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.py 433 Bytes
一键复制 编辑 原始数据 按行查看 历史
Free 提交于 2022-01-13 10:11 . first
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad
from Crypto.Random import get_random_bytes
from Crypto.Cipher import AES
from Crypto.Util.Padding import unpad
# file_in = open("encrypted.bin", "rb")
file='v6NtX7bNhFoc00GLqlVBsw=='
key, iv, encrypted_data = [file for x in (16, AES.block_size, -1)]
cipher = AES.new(key, AES.MODE_CBC, iv)
data = unpad(cipher.decrypt(encrypted_data), AES.block_size)
print(data)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Bboy-Free/demo.git
[email protected]:Bboy-Free/demo.git
Bboy-Free
demo
demo
master

搜索帮助