A simple GUI application built with Tkinter to encrypt and decrypt text files using the Fernet encryption method from the cryptography
library.
- Generate Encryption Key: Creates a key used for encrypting and decrypting files.
- Encrypt Files: Protects files by encrypting their contents.
- Decrypt Files: Unlocks previously encrypted files using the same key.
- User-Friendly Interface: Easy-to-use GUI built with Tkinter.
- Download the
app.exe
from the release folder. - Double-click
app.exe
to launch the GUI. No need to install Python or dependencies.
-
Generate Key:
- Click "Generate Key" to create an encryption key (
key.key
). - Save this key securely; it's required for both encryption and decryption.
- Click "Generate Key" to create an encryption key (
-
Encrypt File:
- Click "Encrypt File" and select a text file.
- The selected file will be encrypted and overwritten with encrypted content.
-
Decrypt File:
- Click "Decrypt File" and select an encrypted file.
- If the correct key is used, the file will be decrypted successfully.
-
Exit:
- Click "Exit" to close the application.
If you want to run the source code directly, ensure you have the following installed:
- Python 3.x
- cryptography library
Install it using:
pip install cryptography
To generate the .exe
file from the source code:
-
Install PyInstaller:
pip install pyinstaller
-
Run the following command:
pyinstaller --onefile --windowed encryptor_gui.py
-
The executable will be available in the
/dist
folder.
- Keep the
key.key
file safe! Without it, you cannot decrypt encrypted files. - The encryption method used is Fernet from the
cryptography
library, which ensures secure symmetric encryption.
This project is open-source and free to use.