Skip to content
/ SEC-File Public

🔐 SEC-File is a powerful command-line tool designed to protect your sensitive data through robust encryption and decryption of files and folders. Utilizing the "cryptography" library, SEC-File ensures that your information remains secure from unauthorized access.

License

Notifications You must be signed in to change notification settings

0warn/SEC-File

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEC-File Introduction :-

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


---

## 🚀 Installation

1. **Clone the repository:**

   ```bash
   git clone https://github.com/0warn/SEC-File.git
   cd SEC-File
  1. Install dependencies:

    python3 setup.py

🛠️ Usage

  1. Run the script:

    python3 SEC-File.py
  2. Follow the prompts:

    • Enter e to encrypt files or d 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.

ezgif com-speed


🔍 How It Works

Encryption Process:

  • 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).

Decryption Process:

  • 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.

📊 Logging

All operations are logged in encryption.log for auditing purposes. You can check this file to see the history of encryption and decryption operations.


🔒 Security Considerations

  • 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.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


🤝 Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.


🙏 Acknowledgments


Thank you for checking out SEC-File! If you have any questions or feedback, feel free to reach out. Happy encrypting! 🔐

About

🔐 SEC-File is a powerful command-line tool designed to protect your sensitive data through robust encryption and decryption of files and folders. Utilizing the "cryptography" library, SEC-File ensures that your information remains secure from unauthorized access.

Topics

Resources

License

Stars

Watchers

Forks

Languages