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

As a Library

from caesar_cipher import caesar
print(caesar("hello", 3)) # Encryption...
print(caesar("khoor", 3,encrypt=False))  # Decryption...

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.1.tar.gz (3.3 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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: caesar_cipher_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 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.1.tar.gz
Algorithm Hash digest
SHA256 ce25e37941fa20bf8f162a77e4687c56cf0171b0b5bf57b204ec408b7bbb4809
MD5 1f864050882b8dd9a4224827a1416347
BLAKE2b-256 f1b176f8a54d0490b1a43024ae74feb3732c5245c8c0e3f1b4e654e7b78c98e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caesar_cipher_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b559a26c612b6a760278fafd0e708c276736fd9511085a96ac2a554bb138597
MD5 b1f31d3c7ffc95491598c6efaa321873
BLAKE2b-256 6aebdae2a0917c40ca63c97343c05e859f5d717c868579ca06f6e96fc35fa335

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