Skip to main content

A command-line tool for Caesar cipher encryption and decryption

Project description

Caesar Cipher CLI Tool

A lightweight command-line tool written in Python to encrypt and decrypt text using the Caesar cipher algorithm.

This project demonstrates building, packaging, and distributing a Python CLI tool using modern Python standards.


Features

  • Encrypt and decrypt text using the Caesar cipher technique
  • Command-line interface with clear flags and help output
  • Supports custom shift values
  • Handles both encryption and decryption modes
  • Packaged as a pip-installable CLI tool
  • Clean project structure with proper metadata

Installation

Installation

For Users to use

pip install caesar-cipher-cli

For Developers to contribute

git clone https://github.com/Santhosh2949/caesar-cipher-cli
cd caesar-cipher-cli
pip install .

Usage

After installation, use the caesar command directly from the terminal.

Encrypt text
caesar --text "hello" --shift 3


Output:

khoor

Decrypt text
caesar --text "khoor" --shift 3 --decrypt


Output:

hello

Command Options

caesar --help

Available options:

--text : Text to encrypt or decrypt

--shift : Shift value for the cipher

--decrypt : Enable decryption mode

Project Structure

caesar-cipher-cli/ ├── caesar_cipher/ │ ├── init.py │ └── cli.py ├── pyproject.toml ├── README.md └── LICENSE

Technologies Used

Python 3

argparse (standard library)

Git & GitHub

Python packaging (pyproject.toml)

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

caesar_cipher_cli-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

caesar_cipher_cli-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: caesar_cipher_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for caesar_cipher_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f234c773c2b0ed53ef3eb941a448b5d89abae31dd6ddd369af476ed9dfb041bb
MD5 e3aedbc3ba44b98d8d51ebac1b3567f4
BLAKE2b-256 327bed69206ff408dd110b0b5b9d9cde3a0ae121b9741ef94a3a6c00c1bd9e42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caesar_cipher_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3cc5c7ff3ed863e686685197392ee56fa4c5880d119b086b2ec4dd9c2dca633
MD5 be484d51992228bf3f892e0edcead4d2
BLAKE2b-256 06a1539debbbfa4456568b2c3537ee517a7b2c0c375be858faf585fd7394dd5f

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