Skip to content

Fixed Crypto import and added requirements #2

Open
tristanbolton wants to merge 2 commits intohaseebT:masterfrom
tristanbolton:master
Open

Fixed Crypto import and added requirements #2
tristanbolton wants to merge 2 commits intohaseebT:masterfrom
tristanbolton:master

Conversation

@tristanbolton
Copy link

No description provided.

Copy link
Owner

@haseebT haseebT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Tristan,

Can you change your requirements.txt file to require pycryptodome and not pycrypto. Pycryptodome is a fork of PyCrypto and brings several enhancements to it, one being support for AES-GCM. All of its modules are under the Crypto package. Currently the script requires the pycryptodomex package which is why Cryptodome.Cipher is imported.

https://pypi.org/project/pycryptodome/

Your other commit is fine.

@lramphort
Copy link

lramphort commented Jul 20, 2022

Hi, you need to change this too in mremoteng_decrypt.py

- from Cryptodome.Cipher import AES
+ from Crypto.Cipher import AES

and maybe add to README.md to launch pip install pycryptodome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants