Skip to main content

AES-256 CLI tool for encrypting and decrypting files

Project description

🔐 cli-encrypt-txt

A simple and secure CLI tool to encrypt and decrypt text files with a password. Ideal for protecting sensitive information, storing credentials, or creating your own minimal password manager.


✨ Features

  • 🔐 Encrypt text files into .enc format using a password
  • 🔓 Decrypt .enc files with up to 3 password attempts
  • 📦 Lightweight & easy to use
  • 🧠 Great for storing private notes or credentials securely

🚀 Installation

pip install cli-encrypt-txt

🧑‍💻 Usage

🔐 Encrypt a file

cli-encrypt-txt encrypt test.txt
  • You'll be prompted to enter a password.
  • Output: test.txt.enc

🔓 Decrypt a file

cli-encrypt-txt decrypt test.txt.enc
  • Enter the same password to decrypt.
  • You have 3 attempts to get it right.
  • Output: test.txt

💡 Use Case

Use cli-encrypt-txt as a local password manager or secret storage system. Simply encrypt a .txt file containing your credentials, secrets, or notes, and store the .enc file safely. Only those with the password can decrypt it.


🔧 Example

$ cli-encrypt-txt encrypt secrets.txt
Enter password: ******
Successfully encrypted to: secrets.txt.enc

$ cli-encrypt-txt decrypt secrets.txt.enc
Enter password: ******
Decryption successful! File saved as: secrets.txt

🛠️ Developer Notes

  • Requires Python 3.7+
  • Designed with simplicity and file-level encryption in mind
  • No external dependencies (pure Python, unless otherwise noted)

📝 License

MIT License © 2025 Adityakrishna SreeRamachandrarao


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_encrypt_txt-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_encrypt_txt-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file cli_encrypt_txt-0.1.0.tar.gz.

File metadata

  • Download URL: cli_encrypt_txt-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for cli_encrypt_txt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 870a2b5fd1cd8103f3af83c972add385c90f4928c6abb48d7e5c5df205f27525
MD5 e7625ba6f47626ea8928dc5180b9b9c1
BLAKE2b-256 174f7fa9dc7ad23686be04c2e4d5917c2dada840d4599e0a538face67051aebf

See more details on using hashes here.

File details

Details for the file cli_encrypt_txt-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cli_encrypt_txt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b90304ccadef4ed289dfa3703770a846c5be5e23dc996da1b6a0b793cc60a8e5
MD5 faffc293923fa52a5d22ae181a776087
BLAKE2b-256 06d85f75d18b90226ff08e41a4f355738a4674972fa36c35f454fde0751569cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page