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