我已经在python 3.6.5上安装了pycryptodomex模块,但是当我尝试执行以下调用时,出现标题中提到的错误
from Crypto.Cipher import AES
我想使用AES加密文件。现在该如何进行?
>> pip install pycryptodome
from Crypto.Cipher import AES #Works
要么
>> pip install pycryptodomex
from Cryptodome.Cipher import AES
对于python3,软件包名称现在为pycryptodome或pycryptodomex
如果你需要与你的项目的兼容性Python2使用pycryptodome或者使用pycryptodomex这是老PyCrypto库独立。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句