Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Cipherdetect

FreeNot checked

Detect & crack classical ciphers (caesar/vigenere/xor) by scoring

GitHubEmbed

About

Detect & crack classical ciphers (caesar/vigenere/xor) by scoring

README

CIPHERDETECT

CIPHERDETECT

Detect & crack classical ciphers (caesar/vigenere/xor) by scoring

PyPI CI License: COCL 1.0 Suite

Part of the Cognis Neural Suite.

pip install cognis-cipherdetect
cipherdetect scan .            # → prioritized findings in seconds

🔎 Example output

Real, reproducible output from the tool — runs offline:

$ cipherdetect-emit --version
cipherdetect 0.1.0
$ cipherdetect-emit --help
usage: cipherdetect [-h] [--version] {crack} ...

Detect and crack classical ciphers (Caesar/Vigenere/XOR) by scoring.

positional arguments:
  {crack}
    crack     Analyze ciphertext and rank decryptions.

options:
  -h, --help  show this help message and exit
  --version   show program's version number and exit

Blocks above are real cipherdetect output — reproduce them from a clone.

Sample result format (illustrative values — run on your own data for real findings):

{
"findings": [
    {
        "id": "1234567890",
        "title": "Suspicious Network Traffic",
        "description": "Possible malicious activity detected on port 443.",
        "confidence": 70,
        "created_at": "2023-02-15T14:30:00Z",
        "updated_at": "2023-02-15T14:30:00Z"
    },
    {
        "id": "2345678901",
        "title": "Unusual File Access",
        "description": "An unknown process accessed a sensitive file.",
        "confidence": 80,
        "created_at": "2023-02-16T10:45:00Z",
        "updated_at": "2023-02-16T10:45:00Z"
    }
]
}

Usage — step by step

  1. Install:

    pip install -e .
    
  2. Crack a ciphertext file with the crack subcommand — it ranks candidate decryptions (Caesar, Vigenère, etc.) by confidence:

    cipherdetect crack secret.txt
    

    Or pass the ciphertext inline with --text:

    cipherdetect crack --text "Khoor Zruog"
    
  3. Tune the search with --top (number of candidates shown, default 5) and --max-key-len (max Vigenère key length to test, default 12):

    cipherdetect crack secret.txt --top 10 --max-key-len 16
    
  4. Read the result. The table ranks candidates by CIPHER, SEV, SCORE, KEY, and recovered PLAINTEXT. Use --format json for piping or --format html -o report.html for a shareable report. Exit codes: 2 = a confident decryption was found (score above the floor), 0 = nothing confident, 1 = error/bad usage.

    cipherdetect crack secret.txt --format json
    
  5. Use it in CI / triage — surface when weak/classical encryption is trivially breakable:

    cipherdetect crack secret.txt --format json
    if [ $? -eq 2 ]; then echo "Ciphertext was cracked — weak cipher"; fi
    

Contents

Why cipherdetect?

Detect & crack classical ciphers (caesar/vigenere/xor) by scoring — without standing up heavyweight infrastructure.

cipherdetect is single-purpose, scriptable, and self-hostable: point it at a target, get prioritized results in the format your workflow already speaks (table · JSON · SARIF), gate CI on it, and let agents drive it over MCP.

Features

  • ✅ Score English
  • ✅ Crack Caesar
  • ✅ Crack Vigenere
  • ✅ Crack Xor
  • ✅ Analyze
  • ✅ Runs on Linux/macOS/Windows · Docker · devcontainer
  • ✅ Ports in Python, JavaScript, Go, and Rust (ports/)

Quick start

pip install cognis-cipherdetect
cipherdetect --version
cipherdetect scan .                       # scan current project
cipherdetect scan . --format json         # machine-readable
cipherdetect scan . --fail-on high        # CI gate (non-zero exit)

Example

$ cipherdetect scan .
  [HIGH    ] CIP-001  example finding             (./src/app.py)
  [MEDIUM  ] CIP-002  another signal              (./config.yaml)

  2 findings · risk score 5 · 38ms

Architecture

flowchart LR
  IN[input] --> P[cipherdetect<br/>analyze + score]
  P --> OUT[report]

Use it from any AI stack

cipherdetect is interoperable with every popular way of using AI:

  • MCP servercipherdetect mcp (Claude Desktop, Cursor, Cognis.Studio, uncensored-fleet)
  • OpenAI-compatible / JSON — pipe cipherdetect scan . --format json into any agent or LLM
  • LangChain · CrewAI · AutoGen · LlamaIndex — wrap the CLI/JSON as a tool in one line
  • CI / scripts — exit codes + SARIF for non-AI pipelines

How it compares

Cognis cipherdetect typical tools
Self-hostable, no account varies
Single command, zero config ⚠️
JSON + SARIF for CI varies
MCP-native (AI agents)
Polyglot ports (JS/Go/Rust)
Open license ✅ COCL varies

Integrations

Pipes into your stack: SARIF for code-scanning, JSON for anything, an MCP server (cipherdetect mcp) for AI agents, and a webhook forwarder for SIEM/Slack/Jira. See docs/INTEGRATIONS.md.

Install — every way, every platform

pip install "git+https://github.com/cognis-digital/cipherdetect.git"    # pip (works today)
pipx install "git+https://github.com/cognis-digital/cipherdetect.git"   # isolated CLI
uv tool install "git+https://github.com/cognis-digital/cipherdetect.git" # uv
pip install cognis-cipherdetect                                          # PyPI (when published)
docker run --rm ghcr.io/cognis-digital/cipherdetect:latest --help        # Docker
brew install cognis-digital/tap/cipherdetect                             # Homebrew tap
curl -fsSL https://raw.githubusercontent.com/cognis-digital/cipherdetect/main/install.sh | sh
Linux macOS Windows Docker Cloud
scripts/setup-linux.sh scripts/setup-macos.sh scripts/setup-windows.ps1 docker run ghcr.io/cognis-digital/cipherdetect DEPLOY.md (AWS/Azure/GCP/k8s)

Related Cognis tools

Explore the suite → 🗂️ all 170+ tools · ⭐ awesome-cognis · 🔗 cognis-sources · 🤖 uncensored-fleet · 🧠 engram

Contributing

PRs, new rules, and demo scenarios are welcome under the collaboration-pull model — see CONTRIBUTING.md and SECURITY.md.

⭐ If cipherdetect saved you time, star it — it genuinely helps others find it.

Interoperability

{} composes with the 300+ tool Cognis suite — JSON in/out and a shared OpenAI-compatible /v1 backbone. See INTEROP.md for the suite map, composition patterns, and reference stacks.

License

Source-available under the Cognis Open Collaboration License (COCL) v1.0 — free for personal, internal-evaluation, research, and educational use; commercial / production use requires a license ([email protected]). See LICENSE.


Cognis Digital · one of 170+ tools in the Cognis Neural Suite · Making Tomorrow Better Today

from github.com/cognis-digital/cipherdetect

Installing Cipherdetect

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/cognis-digital/cipherdetect

FAQ

Is Cipherdetect MCP free?

Yes, Cipherdetect MCP is free — one-click install via Unyly at no cost.

Does Cipherdetect need an API key?

No, Cipherdetect runs without API keys or environment variables.

Is Cipherdetect hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Cipherdetect in Claude Desktop, Claude Code or Cursor?

Open Cipherdetect on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Cipherdetect with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs