Skip to main content

A CLI tool for encryption, decryption, and cryptanalysis of classical ciphers

Project description

CipherDex

CipherDex is a powerful command-line toolkit for encryption, decryption, and cryptanalysis of classical ciphers.

Explore, analyze, and break classical ciphers directly from your terminal.


Installation

pip install cipherdex

Usage

Encrypt text

cipherdex encrypt --algo caesar "hello world" --key 3

Decrypt text

cipherdex decrypt --algo caesar "khoor zruog" --key 3

AES encrypt/decrypt

cipherdex encrypt --algo aes --key <BASE64_KEY> "hello world"
cipherdex decrypt --algo aes --key <BASE64_KEY> <BASE64_CIPHERTEXT>

AES-Password encrypt/decrypt (password-based)

cipherdex encrypt --algo aes-password --password "mypassword" "hello world"
cipherdex decrypt --algo aes-password --password "mypassword" <BASE64_CIPHERTEXT>

RSA encrypt/decrypt

cipherdex encrypt --algo rsa --pub-key-file pub.pem "secret message"
cipherdex decrypt --algo rsa --private-key-file priv.pem <BASE64_CIPHERTEXT>

Generate key

cipherdex generate-key --algo aes
cipherdex generate-key --algo rsa

Hash data

cipherdex hash --algo sha256 "hello world"
cipherdex hash --algo sha256 --file data.txt
cipherdex hash --algo bcrypt "password"
cipherdex hash --algo argon2 "password"

Analyze text

cipherdex analyze "khoor zruog"

Detect cipher

cipherdex detect "khoor zruog"

Bruteforce Caesar cipher

cipherdex bruteforce "khoor"

Features

  • Multiple cipher support:

    • Caesar, ROT13, Atbash
    • Vigenère, Affine
    • Playfair, Rail Fence
    • AES-GCM and RSA (modern encryption)
  • Letter frequency analysis

  • Index of Coincidence (IC)

  • Cipher detection heuristics

  • Brute-force attack tools

  • File input/output support

  • Rich CLI output


Disclaimer

This tool is for educational purposes only. The ciphers implemented are not secure for real-world encryption.


Author

Varun


License

MIT License

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

cipherdex-0.2.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

cipherdex-0.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file cipherdex-0.2.0.tar.gz.

File metadata

  • Download URL: cipherdex-0.2.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for cipherdex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3d07b7e8532d80dc0b7bd5cf2a6e308c262664c6132a27e072cbe61e3e0803fe
MD5 f077bf36f218560bc8559ad488971d8d
BLAKE2b-256 c0a116dc1c41df265ebe7e9bdb13c7d1d41190f31cc559ed5f67420d1e022ba0

See more details on using hashes here.

File details

Details for the file cipherdex-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cipherdex-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for cipherdex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00a7dbb2bf7cb13f49d6142d8e512093e831626c2950a22173a563398072bd19
MD5 d1ba041db45d149f33b2b448c1831d51
BLAKE2b-256 415dc9efad793174881d080fe8c32fe075036453cdbf4c70d2cb7485308347e4

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