Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Python-based tool capable of encrypting and decrypting files of various formats, including mp3, jpeg, png, txt, and more.

Notifications You must be signed in to change notification settings

4-krishna/File-encryption-decryption-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

🔐 Encrypt Decrypt Tool

A versatile and secure command-line utility for encrypting and decrypting files of various formats using the Fernet symmetric encryption algorithm.

✨ Key Features

  • 🔒 Strong Encryption & Decryption
    Securely encrypt and decrypt any file with the powerful Fernet encryption algorithm.

  • 📂 Multi-format Support
    Works with a wide range of file types — including .mp3, .jpeg, .png, .txt, and more.

  • 🛠 Command-Line Interface
    Simple, script-friendly CLI design for quick use and seamless automation in your workflows.

  • 📁 Flexible I/O Options
    Easily specify input and output paths to maintain full control over where your files go.


⚙️ How It Works

This tool uses Fernet encryption provided by the cryptography Python package. Fernet guarantees that a message encrypted using it cannot be manipulated or read without the key.


🚀 Getting Started

🔧 Prerequisites

Make sure you have Python installed. Then, install the required package:

pip install cryptography

🧑‍💻 Usage

🔐 Encrypt a file

python encrypt_decrypt_tool.py encrypt input_file [--output_file OUTPUT_FILE]

🔓 Decrypt a file

python encrypt_decrypt_tool.py decrypt input_file [--output_file OUTPUT_FILE]

📌 Example

python encrypt_decrypt_tool.py encrypt secret.txt --output_file secret.encrypted
python encrypt_decrypt_tool.py decrypt secret.encrypted --output_file secret_decrypted.txt

📽 Preview

Preview.mp4

📁 Supported File Formats

  • Text files (.txt)
  • Audio files (.mp3)
  • Image files (.jpeg, .png)
  • And virtually any other file type

🔐 Why Fernet?

Fernet is part of the Python cryptography library and ensures:

  • Secure symmetric encryption (AES in CBC mode with a SHA256 HMAC)
  • Time-based token validity (optional)
  • Easy key management and sharing

📄 License

This project is licensed under the MIT License.


Built with ❤️ using Python and cryptography.

About

Python-based tool capable of encrypting and decrypting files of various formats, including mp3, jpeg, png, txt, and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages