You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Hi, I found a potential security issue in your encryption code.
The AES-GCM mode uses a static IV (b"0" * 16) when no IV is provided:
iv = iv or b"0" * BLOCK_SIZE
Using a fixed IV in AES-GCM is insecure. It breaks the guarantees of confidentiality and integrity if reused with the same key.
Please consider generating a random IV (e.g., os.urandom(12)) for each encryption to follow best practices.
Thanks.