Repository navigation
Changelog
v1.03 Latest Release
The release of ClatsGuard Heavy was a huge step forward in file encryption. However, I improved upon it, and now we have version 1.03.
Security Enhancements
-
Deterministic Nonces for ChaCha20
- Replaced random
secrets.token_bytes()nonces with a deterministic per-segment counter (_nonce_for_chacha(seg_index)) to eliminate risks of nonce reuse.
- Replaced random
-
Secure File Deletion
- Introduced
_secure_deletewhich overwrites files with random data before removal, reducing recovery risk compared to plainos.remove(). - Integrated
_secure_deleteinto the "Delete after encryption" option.
- Introduced
-
Tighter AES-GCM-SIV Validation
- Refined ciphertext length validation during decryption from
CHUNK_SIZE + TAG_LENGTH + NONCE_LENGTHdown toCHUNK_SIZE + TAG_LENGTH, preventing acceptance of malformed segments.
- Refined ciphertext length validation during decryption from
User Experience Improvements
- Weak Passphrase Warning
- Added a prompt when a passphrase shorter than 10 characters is entered, warning the user and requiring confirmation to proceed.
Additional Changes
- Added
_nonce_for_chachautility for deterministic nonce derivation. - Added
_secure_deleteutility for secure file wiping.