Skip to content

Use cryptography instead of Crypto for AES256 encryption + Use PyQt6 to solve CAPTCHA - #57

Open
AdityaGarg8 wants to merge 9 commits into
opulentfox-29:masterfrom
AdityaGarg8:master
Open

Use cryptography instead of Crypto for AES256 encryption + Use PyQt6 to solve CAPTCHA#57
AdityaGarg8 wants to merge 9 commits into
opulentfox-29:masterfrom
AdityaGarg8:master

Conversation

@AdityaGarg8

Copy link
Copy Markdown
Contributor

The Crpyto module is no longer included in many distros due to security concerns. Cryptography is a better alternative and is widely used in the Python community. Also, it is already being used for AESGCM in the same file.

The Crpyto module is no longer included in many distros due to security concerns.
Cryptography is a better alternative and is widely used in the Python community.
Also, it is already being used for AESGCM in the same file.
cv2 and numpy are very large dependencies, when a lighter one like PyQt6-WebEngine can be used to solve the CAPTCHA.

Also, each dependency to solve the CAPTCHA will now be imported only when needed, to avoid unnecessary imports and reduce the initial load time of the application.
@AdityaGarg8 AdityaGarg8 changed the title Use cryptography instead of Crypto for AES256 encryption Use cryptography instead of Crypto for AES256 encryption + Use PyQt6 to solve CAPTCHA Jun 24, 2025
@AdityaGarg8

Copy link
Copy Markdown
Contributor Author

cv2 and numpy are very large dependencies, when a lighter one like PyQt6-WebEngine can be used to solve the CAPTCHA.

Also, each dependency to solve the CAPTCHA will now be imported only when needed, to avoid unnecessary imports and reduce the initial load time of the application.

@AdityaGarg8

AdityaGarg8 commented Jun 24, 2025

Copy link
Copy Markdown
Contributor Author

Btw, where and for what is AES256 encryption used in this code?

@AdityaGarg8

Copy link
Copy Markdown
Contributor Author

The AES256 encryption commit has been tested only with sending mails btw. I didn't try with receiving mails, but if the same encryption is being used in both, I think it's fine.

@AdityaGarg8

AdityaGarg8 commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

The AES256 encryption commit has been tested only with sending mails btw. I didn't try with receiving mails, but if the same encryption is being used in both, I think it's fine.

Looks like only aes256_decrypt is used in the API that too to download encrypted files. The commit I sent to use cryptography instead of Crypto is working properly with that.

@AdityaGarg8

Copy link
Copy Markdown
Contributor Author

Btw cv2 is a huge library, taking around 600+ Mb on Ubuntu. Maybe we can make this optional? PyQt takes around 100-150 Mb.

I find using pyqt more reliable than cv2 as well.

@AdityaGarg8

Copy link
Copy Markdown
Contributor Author

Significantly reduces the number of CAPTCHA incidences
@AdityaGarg8

Copy link
Copy Markdown
Contributor Author

Looks like the type of account if used as 4 instead of 32 will eliminate the need for creating a multipart message.

@AdityaGarg8

Copy link
Copy Markdown
Contributor Author

@opulentfox-29 , just wondering if you are still maintaining this or not?

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.

1 participant