Desktop application for securely encrypting and decrypting files on Linux, Windows, and MacOS
Table of Contents
- Description
- Status
- Getting Started
- π Installation & Build
- Documentation & Screenshots
- SBoM (CycloneDX)
- ποΈ Architecture
- Authors and License
A modern desktop application for securely encrypting and decrypting files on Linux, Windows, and macOS. Developed with C++23 and Qt 6.
The application uses AES-256 CBC encryption and is optimized for high performance with low memory usage (streaming processing).
- Secure Encryption: Uses AES-256 in CBC mode with SHA-256 hashed passwords.
- High Performance: Files are streamed in 4 MB chunks. This allows even very large files (GB/TB range) to be encrypted without burdening the RAM.
- User Friendly:
- Always starts in the user's Home directory.
- Smart path suggestions (saving next to the source file).
- Drag & Drop support (via file dialog).
- Internationalization (i18n):
- Automatic language detection on first start (English/German).
- Language switchable via menu (settings are persisted).
- Cross-Platform: Runs natively on all systems supporting Qt.
Caution
Please be aware of breaking changes
| Version | status | Comment |
|---|---|---|
| v0.1.0 | NOT compatible to higher versions. | initial creation, text mode |
| v1.0.0 | NOT compatible with lower versions. | optimized input/output, text mode limited to some text-based files |
| v2.0.0 | NOT compatible with lower versions. | binary-mode, works on every readable file. No filesize limit. |
There are two options:
-
Unzip
-> no Administrator rights needed
- unzip
file_encryption-decryption_x86_amd64.zipand executefile_encryption-decryption.exe
-
Setup
-> no Administrator rights needed (optional)
- execute
file_encryption-decryption_x86_amd64_v2.1.0.exeand follow the instructions (see Github Pages for details.) - doubleclick
file_encryption-decryption.exeor your Desktop-Shortcut
- doubleclick
File_Encryption_&_Decryption-x86_64.AppImageor your Dekstop-Shortcut
- doubleclick the downloaded
.dmgpackage to open it. - doubleclick the
file_encryption-decryptionapplication inside to start it directly. There is no installation required.
Warning
don't loose your password. Decryption/Recovery without valid password is impossible!
Tip
see Github Pages for Usage & Screenshots
Several installation packages are available, depending on your Operating System
Tip
see Releases or Github Pages
- C++ Compiler with C++23 support (GCC, Clang, MSVC)
- CMake (>= 3.23)
- Qt 6 (Core, Widgets, Gui)
.
βββ CMakeLists.txt # Build configuration
βββ resources.qrc # Qt Resources (Icons, i18n)
βββ include/ # Header files (.h)
β βββ encryption_manager.h
β βββ encrypt_file_dialog.h
β βββ decrypt_file_dialog.h
β βββ menu_page.h
β βββ ...
βββ src/ # Source files (.cpp)
βββ main.cpp
βββ encryption_manager.cpp
βββ encrypt_file_dialog.cpp
βββ decrypt_file_dialog.cpp
βββ ...- Clone Repository:
git clone https://github.com/Zheng-Bote/qt-desktop_file_encryption-decryption.git
cd qt-desktop_file_encryption-decryption- Create Build Directory:
mkdir build && cd build- Compile with CMake:
cmake ..
make -j$(nproc)- Run:
./file_encryption-decryption/opt/Qt/6.10.0/gcc_64/bin/lupdate -no-obsolete src/ -ts i18n/qt_file_encryption-decryption_en.ts/opt/Qt/6.10.0/gcc_64/bin/lrelease i18n/qt_file_encryption-decryption_en.ts -qm i18n/qt_file_encryption-decryption_en.qmDepending on your Linux distribution you might need to install additional packages to build the AppImage.
./create_appimage.shor
./create_appimage_modern.shTo build the macOS DMG package, you need to have create-dmg installed (e.g., via Homebrew: brew install create-dmg).
./create_dmg.shNote
please visit Github Pages for more.
nvm use --ltsatom -J-Xmx16g usages -o ./docs/app.atom --slice-outfile ./docs/atom_v2.1.0.json -l cpp ./srccdxgen -o ./docs/sbom_v2.1.0.json -t cpp --usages-slices-file ./docs/atom_v2.1.0.json --author "ZHENG Robert" --deep -r ./srcThe project follows the "Composition over Inheritance" principle and strictly separates UI logic from encryption logic.
Tip
π Detailed Architecture Models: For comprehensive UML and architectural diagrams (Context, Class, Component, Deployment, Use Case, etc.), please see our new documentation:
classDiagram
class MenuPage {
+loadLanguage()
+createLanguageMenu()
-EncryptFileDialog* encryptDialog
-DecryptFileDialog* decryptDialog
}
class EncryptionManager {
<<Core Logic>>
+encryptFile(source, pass, overwrite)
+decryptFile(source, pass, overwrite)
-processFile(stream processing)
}
class EncryptFileDialog {
<<UI Dialog>>
-EncryptionManager* logic
+encrypt_file_slot()
}
class DecryptFileDialog {
<<UI Dialog>>
-EncryptionManager* logic
+decrypt_file_slot()
}
MenuPage --> EncryptFileDialog : opens
MenuPage --> DecryptFileDialog : opens
EncryptFileDialog *-- EncryptionManager : owns (Composition)
DecryptFileDialog *-- EncryptionManager : owns (Composition)
To keep memory usage minimal, files are never loaded completely into RAM. Instead, a QFile stream is used:
-
Open: Source and destination files are opened.
-
Loop:
- Read 4 MB chunk from source stream.
- Process block (AES Encode/Decode) via QAESEncryption.
- Write processed block to destination stream.
- Close: Streams are closed, temporary files are renamed/moved.
This project is released under the MIT License. See LICENSE for details.
Copyright (c) 2024 ZHENG Robert
π

