Small python based file encryption script that guarantees only the intended reciever with the key you made/generated can have your private files
This is a simple Python GUI application for encrypting and decrypting files using AES-256 encryption. The application uses the tkinter
library for the GUI and the cryptography
library for encryption and decryption. The encryption key is automatically copied to the clipboard when generated.
- Generate a new AES-256 encryption key
- Encrypt files using the generated or provided key
- Decrypt files using the provided key
- Copy the encryption key to the clipboard
- Python 3.x
cryptography
librarypyperclip
library
-
Clone the repository or download the script.
-
Install the required libraries using pip:
pip install cryptography pyperclip
-
Run the script:
python encfile.py
-
The application window will appear.
-
To generate a new encryption key:
- Click the "Generate Key" button.
- The generated key will be displayed in the entry field and copied to the clipboard.
-
To encrypt a file:
- Enter the encryption key in the entry field (or use the generated key).
- Click the "Encrypt File" button and select the file to encrypt.
- The encrypted file will be saved with the extension
.encrypted
.
-
To decrypt a file:
- Enter the encryption key in the entry field.
- Click the "Decrypt File" button and select the file to decrypt.
- The decrypted file will be saved with the original file extension.
- Keep the encryption key safe. You will need it to decrypt the files.
- The encryption key is automatically copied to the clipboard when generated.
This project is licensed under the MIT License. See the LICENSE
file for details.