Skip to content

Devp31/Encryption-program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 File Encryption Tool

Repository: file-encryption-repo
Purpose: A simple Python script to encrypt and decrypt files securely using cryptography.fernet.
Perfect for cybersecurity learning and demos 🚀

Python License: MIT Security


✨ Features

  • Generate a secure Fernet encryption key (only once).
  • Encrypt and decrypt any file (text, images, docs).
  • Key stored in encryption_key.key.
  • CLI prompts for user-friendly interaction.

📂 Files

  • encryptingfile.py → main script
  • README.md → this documentation
  • requirements.txt → dependencies
  • LICENSE → MIT license
  • .gitignore → ignore unnecessary files
  • SECURITY.md → security warnings & recommendations
  • INSTALL.md → setup and usage guide
  • CONTRIBUTING.md → guidelines for contributing

🚀 Quick Start

  1. Install Python 3.8+
  2. Install dependencies:
    pip install -r requirements.txt
  3. Run the script:
    python encryptingfile.py

🔑 Example Usage

Do you want to encrypt or decrypt? (e/d): e
Enter the filename (with extension): secret.txt
File 'secret.txt' encrypted successfully.
Do you want to encrypt or decrypt? (e/d): d
Enter the filename (with extension): secret.txt
File 'secret.txt' decrypted successfully.

⚠️ Security Notes

  • This repo is for educational purposes only.
  • Key management is critical. If encryption_key.key is stolen, files can be decrypted.
  • Use advanced key storage (HSM, vaults) in production.
  • Add file integrity checks (MAC) for stronger protection.

See SECURITY.md for details.


🛠️ Improvements Roadmap

  • Add password-based key derivation (PBKDF2 / Argon2).
  • Add GUI (Tkinter / PyQt).
  • Add drag-and-drop support.
  • Integrate with cloud storage encryption.

📜 License

MIT License — see LICENSE.


Made with ❤️ for Cybersecurity Education

About

this repo contaions a python program use to encrypt and decrypt file locally with secret key

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages