Skip to main content

CLI-pher

Introduction

Welcome to CLI-pher! This is a command line implementation for quick encoding and decoding of text using common ciphers.

Supported ciphers

  • Caesar
  • Vigenere
  • Simple keyword substitution
  • Playfair
  • Morse
  • Numerical substitution

Quickstart Guide

Install

CLI-pher is published to PyPI and can be installed via pip, uv, or any python package manager of your choice.

pip install cli-pher

Run

CLI-pher can be run using either cli-pher or clipher. For consistency, this guide will use cli-pher and the caesar command for each example.

For usage and full list of commands:

# Display help message for cli-pher
cli-pher --help

# Display help message for a specific supported cipher
# Usage: cli-pher COMMAND --help
cli-pher caesar --help

Running cipher encryption/decryption examples:

# Example - encrypting using caesar cipher with a shift of 3
cli-pher caesar 3 julius

# Example - decrypting using caesar cipher with a shift of 3
cli-pher caesar 3 mxolxv --decrypt

Interactive Mode

CLI-pher supports an "Interactive Mode" that prompts you for all necessary inputs instead of relying on positional arguments and CLI options. Interactive Mode is automatically started if any required arguments are missing from your cli-pher command.

Alternatively, you can enter interactive mode by passing the interactive flag:

cli-pher caesar --interactive

Here is an example of what interactive mode looks like:

$ cli-pher caesar --interactive
Entering interactive mode!
Encrypt or decrypt? (e/d):
$ e
Key:
$ 3
Text:
$ julius
mxolxv

Using CLI-pher as a library

CLI-pher can be added as a dependency to a python project and the ciphers module can be imported for programmatic encryption and decryption of supported CLI-pher ciphers.

from cli_pher.ciphers import caesar

ciphertext = caesar.encrypt('julius', 3)
print(f'Caesar encrypted text: {ciphertext}')

Metadata

Release files for cli-pher 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cli-pher 2.0.0
File Size Uploaded Provenance Actions
cli_pher-2.0.0.tar.gz 7.5 kB Without provenance Details for cli_pher-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cli-pher 2.0.0
File Interpreter ABI Platform Actions
cli_pher-2.0.0-py3-none-any.whl Python 3 none any Details for cli_pher-2.0.0-py3-none-any.whl

Total release size: 18.9 kB

Release files / cli_pher-2.0.0.tar.gz

Download URL cli_pher-2.0.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
98fa1469d75210d4ef61a31a693e5e58f20d9955f063f1d3d2f951c6e8d14fe2
BLAKE2b-256 checksum
How to use checksums
5ae9f976ec2c5aeb35c859e8916798551ceb5d959e670d22d1df9c47bcda8c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cli_pher-2.0.0-py3-none-any.whl

Download URL cli_pher-2.0.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45af227d7837bd8524678a323aafac1cbb80b1b7696da41b68bc75a8634fd6fb
BLAKE2b-256 checksum
How to use checksums
cf090f327cd4555a38a0b613727539a63156c8f6656ce5d6796d6c3ca0e06f62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for cli-pher 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page