This repository was archived by the owner on Dec 14, 2025. It is now read-only.
Repository navigation
v3.1.0
2025-06-30
LEA v3.1.0 — Windows build and auto generation of IV
Full Changelog: v3.0.0...v3.1.0
🚀 Notable Changes
-
Windows Build Support
-
Automatic IV Generation
- The Initialization Vector (IV) is now generated automatically for each encryption operation, improving security and reducing user error. #29
- Expanded metadata struct: version, mode, and IV fields are now included for better file identification and future compatibility.
-
Decryption Output Improvements
- Improved handling for writing and stripping padding on decryption, ensuring output files exactly match their original sizes.
- Refactored binary stream writing logic to be more robust and avoid panics when handling the last block of data.
-
Error Handling & Reporting
- Enhanced error reporting and panic handling, especially for out-of-bounds slice accesses during block conversion and file writing.
- Improved error messages and logging during encryption and decryption operations.
-
Documentation & Codebase
- Added documentation and comments to clarify cryptographic block handling and file I/O.
- Refactored internal APIs to use
[]uint32and[4]uint32more safely and idiomatically. - More robust hooks for progress and UI updates.
🐞 Bug Fixes
- Fixed a runtime panic caused by out-of-range slice access when converting
[4]uint32to[]byte. - Corrected logic for writing only the necessary number of bytes on the last decrypted block, preventing file size mismatches and padding leaks.
For all commits and details, see the complete diff.