This is a simple GUI application written in Python that allows you to encrypt and decrypt folders. The application uses the cryptography
library for encryption and tkinter
for the graphical user interface.
- Encrypt Folder: Compresses a selected folder into a zip file, encrypts the zip file, and deletes the original folder.
- Decrypt Folder: Decrypts a selected encrypted zip file, extracts its contents, and deletes the decrypted zip file and key file.
- Python 3.x
tkinter
(usually comes pre-installed with Python)cryptography
library
- Clone the repository or download the source code.
- Install the required Python library:
pip install cryptography
- Run the script:
python Folder-Encryption.py
- The GUI will open with two buttons: "Encrypt Folder" and "Decrypt Folder".
- Click the "Encrypt Folder" button.
- Select the folder you want to encrypt.
- The application will create a zip file of the folder, encrypt it, delete the original folder, and display a success message with the location of the key file.
- Click the "Decrypt Folder" button.
- Select the encrypted zip file.
- Select the key file that was generated during encryption.
- The application will decrypt the zip file, extract its contents, delete the decrypted zip file and key file, and display a success message.
Make sure to keep the key file safe as it is required for decryption. The encrypted zip file and key file are saved in the same directory as the original folder.