Update to use from pycryptodome AES instead of pycrpto version as CCM…#20
Update to use from pycryptodome AES instead of pycrpto version as CCM…#20felimwhiteley wants to merge 1 commit intoasmw:masterfrom
Conversation
… is no longer present As python3-pycryptodome was already part of the install dependencies it seems maybe this was forgotten or python 3.8 on Ubuntu 20.04 based distros caused it to break. Otherwise it throws a module 'Crypto.Cipher.AES' has no attribute 'MODE_GCM' Error and exits after the password is entered.
|
Hmm, the main branch works fine for me on Ubuntu 21.10. When I merge this the tests fail: |
|
Looking at the examples (https://www.pycryptodome.org/en/latest/src/examples.html#encrypt-data-with-aes), pycryptodome provides the Crypto module |
|
Sorry had missed your replies. It's a weird one, but I've seen various bits about the web about the MODE_GCM going away with later python versions, here's one example; I'm using KDE Neon, the base system is Ubuntu 20.04 and I have Python 3.8.10 as part of that. And once I made my change I could just run the decrypt script on it's own (once installed the deps you have for debian systems) and I managed to decrypt the andOTP backup perfectly. I didn't use pip and the requirements. |
|
I have no idea. I guess it might be a precedence issue with PyCrypto and PyCryptodome? As I wrote, the version in the patch does not work for me. |
… is no longer present
As python3-pycryptodome was already part of the install dependencies it seems maybe this was forgotten or python 3.8 on Ubuntu 20.04 based distros caused it to break.
Otherwise it throws a
module 'Crypto.Cipher.AES' has no attribute 'MODE_GCM'
Error and exits after the password is entered.