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>

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

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.1.2.tar.gz (12.0 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.1.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cipherdex-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ad519b3daf525c22a19d1ba94d06ac0b56839f5a8b4abeb0e9a053f45f358611
MD5 c4c8e44c1231e6b12ee1be9b4da6228a
BLAKE2b-256 b5dee914cd8b4389cd6f1b9fb6ee23f3e29522faf485e74d4c9b6a2612a50018

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cipherdex-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb2ca5c5b7d848dfd94fe7b395831a89158f324f932ea3cd5e0b8fd175efd7f5
MD5 5b00b77d6843617b75b87eda73d04618
BLAKE2b-256 a16b4d60d9c1a9ca45a352cdd8c62f86348085eb0fb783ddc4a824b4ee0505e2

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