SEC-File 2.5 released more funciton added. Check the new version.
# π SEC-File: Secure File Encryption and Decryption Tool
SEC-File is a robust command-line tool designed for securely encrypting and decrypting files and folders. Leveraging the power of the `cryptography` library, SEC-File ensures that your sensitive data remains protected from unauthorized access.
---
## π Table of Contents
- [Features]
- [Requirements]
- [Installation]
- [Usage]
- [How It Works]
- [Logging]
- [Security Considerations]
- [License]
- [Contributing]
- [Acknowledgments]
---
## β¨ Features
- π Strong Encryption: Utilizes PBKDF2 with SHA-256 for key derivation.
- π Folder Support: Encrypt and decrypt entire folders effortlessly.
- ποΈ Secure Deletion: Original files are securely deleted after encryption.
- πΎ Backup Option: Optionally backup original files before encryption.
- π Operation Logging: All actions are logged for auditing purposes.
---
## βοΈ Requirements
- Python: Version 3.x
- Dependencies: `cryptography` library
You can install the required library using pip:
bash
apt install python3-cryptography
-
Clone the repository:
git clone https://github.com/CYBER-MRINAL/SEC-File.git cd SEC-File
-
Install dependencies:
python3 setup.py
-
Run the script:
python3 SEC-File.py
-
Follow the prompts:
- Enter
e
to encrypt files ord
to decrypt files. - Provide the full path to the folder containing the files you want to encrypt or decrypt.
- Enter a password for encryption or decryption.
- Optionally, choose to backup original files before encryption.
- Enter
- Generates a random salt and derives a key from the provided password using PBKDF2.
- Encrypts all files in the specified folder, appending a
.enc
extension to the encrypted files. - Securely deletes the original files after encryption (unless backup is chosen).
- Reads the salt from
salt.bin
and derives the key using the same password. - Decrypts files with the
.enc
extension and restores the original filenames. - Securely deletes the encrypted files after decryption.
All operations are logged in encryption.log
for auditing purposes. You can check this file to see the history of encryption and decryption operations.
- Strong Passwords: Always use a strong password for encryption.
- Backup Important Files: Ensure that you have backups of important files before using this tool, especially if you choose to delete original files.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
- Cryptography - For providing the encryption library.
- Figlet - For the ASCII art banner.
You can contact me on TELEGRAM Thank you for checking out SEC-File! If you have any questions or feedback, feel free to reach out. Happy encrypting! π