Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix encrypt.py #3

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Fix encrypt.py #3

merged 1 commit into from
Jun 21, 2024

Conversation

ScriptSlayer0
Copy link
Collaborator

Hi @HarbingerOfFire, I've read your code and I've seen a potential security problem. In encrypt.py you use AES, as in Blowfish you use ECB_mode, and I have to tell you that ECB is not secure, it is much better to use CBC_mode, although you can also use GCM_mode.
If you want to check the differences between CBC and GCM I leave you the following link: https://crypto.stackexchange.com/questions/2310/what-is-the-difference-between-cbc-and-gcm-mode

Change from ECB to CBC
@HarbingerOfFire
Copy link
Member

Thank you for you find! I will definitely keep this in mind for future codes as well!

@HarbingerOfFire HarbingerOfFire merged commit 88dd3b5 into BivittatusDB:main Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants