The File Encryption Tool is a Python script designed to encrypt files within a specified folder and its subfolders using the Fernet encryption method. This tool provides a secure way to protect the confidentiality of your files.
This tool is provided for educational and demonstration purposes only. Use it at your own risk!! The tool's intent is very dependent on the user, and users should avoid any malicious or unauthorized use, such as creating ransomware
- Python 3.x
- cryptography library (
pip install cryptography
)
- Clone or download the script from the repository.
- Install the required
cryptography
library using the following command:
-
Open a terminal or command prompt.
-
Navigate to the folder containing the script.
-
Run the script using the command:
-
Follow the on-screen prompts to specify the folder path you want to encrypt.
The File Encryption Tool uses the Fernet encryption method to secure your files. Fernet is a symmetric encryption algorithm, meaning the same key is used for both encryption and decryption. A secure Fernet key is generated for each run of the tool.
- The original files within the specified folder and its subfolders are encrypted using the Fernet key.
- The encrypted files are saved with the same filename as the original file, but with ".GHOST" added to the filename (e.g., "example.png" becomes "example.png.GHOST").
- The original files are removed from the folder to maintain security.
- Ensure that you have proper authorization to encrypt files.
- Store the generated Fernet key securely, as it is required for decryption.
- Backup important files before using this tool to prevent data loss.
If you'd like to contribute to the tool's development, feel free to submit pull requests.
This tool is provided under the MIT License.
Before:
After: