[pycrypto] pycryptodome
Dave Pawson
dave.pawson at gmail.com
Thu Dec 8 09:20:26 UTC 2016
https://pycryptodome.readthedocs.io/en/latest/src/installation.html
python3 -m Cryptodome.SelfTest
/usr/bin/python3: Error while finding spec for 'Cryptodome.SelfTest'
(ImportError: No module named 'Cryptodome')
https://pycryptodome.readthedocs.io/en/latest/src/examples.html
example
python3 exp1.py
Traceback (most recent call last):
File "exp1.py", line 12, in <module>
cipher = AES.new(key, AES.MODE_EAX)
AttributeError: module 'Crypto.Cipher.AES' has no attribute 'MODE_EAX'
which seems to be true
dir(AES)
['AESCipher', 'MODE_CBC', 'MODE_CFB', 'MODE_CTR', 'MODE_ECB',
'MODE_OFB', 'MODE_OPENPGP', 'MODE_PGP', '_AES', '__builtins__',
'__cached__', '__doc__', '__file__', '__loader__', '__name__',
'__package__', '__revision__', '__spec__', 'block_size', 'blockalgo',
'key_size', 'new']
Bugs in docs? Library?
Suggestions please.
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
More information about the pycrypto
mailing list