python-des图像加密问题汇总
1, des加密常用两个库,pyDes,超慢,测试下来太费时间,放弃。另一个,
from Crypto.Cipher import DES, 速度超快,建议使用这个,安装方法也简单,pip install pycryptodome。
2,图像数据获取:
with open(os.path.join(dir,path),'rb') as f:
bimg=f.read()
3,解密:
cipher2 = DES.new(b'8位加密数据', DES.MODE_CBC, b'8位初始.
原创
2020-07-15 13:53:06 ·
1239 阅读 ·
0 评论