Ciphey takes encoded or encrypted text and returns likely plaintext without you naming the cipher. It runs as a terminal tool with optional library and MCP integrations.
Overview
Ciphey is a decoding assistant for capture-the-flag work, security reviews, and everyday puzzle strings. You paste ciphertext or oddly encoded blobs and it searches for chains of transformations that yield readable text, even when several layers are stacked.
The tool ships as a Rust binary for Linux, macOS, and Windows, with a guided first-run setup for themes and result display stored under your home config. It tries decoders in an ordered search, caches prior answers locally, and can stop after a configurable time limit. Optional regex cribs or wordlists narrow results when you know part of the answer.
Built-in decoders cover common base encodings, URL and hex forms, Morse and Braille, classical ciphers such as Caesar, ROT47, Atbash, Vigenère, and rail fence, plus formats like Brainfuck execution. Plaintext checks use LemmeKnow-style recognizers for emails, tokens, flags, JSON, and similar patterns.
The same engine is exposed as a Rust crate for programmatic cracking, single-decoder calls, and plaintext detection. An optional MCP server lets compatible AI clients invoke decode, decode-with, detect-plaintext, and list-decoders tools in isolated short-lived processes.
Key features
- Multi-layer automatic decoding search
- Twenty-four built-in decoders and crackers
- LemmeKnow-style plaintext recognition
- Regex crib and wordlist narrowing
- SQLite answer cache
- Rust library API for embedding
- Terminal UI with configurable themes
- Optional MCP server for assistants
Use cases
- CTF encoding challenge solving
- Inspecting unknown encoded strings
- Cracking stacked Base64 or hex layers
- Validating whether text is already plaintext
- Scripted decoding via Rust or MCP