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

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.3.tar.gz (12.4 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.3-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cipherdex-0.1.3.tar.gz
  • Upload date:
  • Size: 12.4 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.3.tar.gz
Algorithm Hash digest
SHA256 aebb25b9130f95eda3bcbf6f6a16112ba1a3df3cf308615b9e5624c8c769686f
MD5 50de02758879c1a5765705007fee1a45
BLAKE2b-256 8419b8cc8da7676b72cca780776c14c6b24445aed35726153df586594634b1c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cipherdex-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc651448fa65c2477c0ad6544faeee850d6da4bfdb9b8b1befbf3f90de22fa71
MD5 9ce8486f599a0ce641b286b05427ca29
BLAKE2b-256 57eb9293ebd685c5c443711fb9dc36e71ac5258016ac797442bdbd14755851a3

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