How zer0k7/descry works
descry is a command-line tool for identifying encodings, peeling layered transformations, and cracking or directly operating on Caesar, Vigenere, and XOR ciphers. Its main workflow reads text from an argument, file, or stdin; applies detection and/or decoding and cipher analysis; ranks candidates with a shared English-scoring model; and renders results for terminal or piped use. The graph includes documented frequency analysis and direct cipher commands. Some CLI code is excerpted only partially, so edges rely on shown calls, source-index references, or README statements; unsampled relationships are omitted.
Main entry points: cli.py Command handlers · detect.py Encoding detection · scoring.py English scoring · caesar.py Caesar cipher
Components 12
CLI and I/O
- Command handlers
descry/cli.py - Input reader
descry/io.py - Result rendering
descry/output.py
Encoding and Detection
- Identify and crack
descry/cli.py - Encoding detection
descry/encodings/detect.py - Layered decoding
descry/encodings/decode.py
Cipher Operations
- Caesar cipher
descry/ciphers/caesar.py - Vigenere cipher
descry/ciphers/vigenere.py - XOR cipher
descry/ciphers/xor.py
Scoring and Results
- Frequency analysis
descry/cli.py - English scoring
descry/scoring.py
Other components
- Command-line user
Connections 22
- Command-line user → Command handlers: runs commands
README.md - Command handlers → Input reader: reads text
descry/cli.py - Command handlers → Identify and crack: dispatches
descry/cli.py - Identify and crack → Encoding detection: detects or cracks
descry/cli.py - Command handlers → Layered decoding: peels layers
descry/cli.py - Encoding detection → Layered decoding: decodes candidates
descry/encodings/detect.py - Encoding detection → Caesar cipher: tests cipher
descry/encodings/detect.py - Encoding detection → Vigenere cipher: tests cipher
descry/encodings/detect.py - Encoding detection → XOR cipher: tests cipher
descry/encodings/detect.py - Layered decoding → Caesar cipher: applies ROT13
descry/encodings/decode.py - Command handlers → Caesar cipher: runs operations
descry/cli.py - Command handlers → Vigenere cipher: runs operations
descry/cli.py - Command handlers → XOR cipher: runs operations
descry/cli.py - Command handlers → Frequency analysis: requests analysis
descry/cli.py - Frequency analysis → English scoring: computes statistics
descry/cli.py - Caesar cipher → English scoring: ranks candidates
descry/ciphers/caesar.py - Vigenere cipher → Caesar cipher: uses shifts
descry/ciphers/vigenere.py - Vigenere cipher → English scoring: scores candidates
descry/ciphers/vigenere.py - XOR cipher → English scoring: scores candidates
descry/ciphers/xor.py - Layered decoding → English scoring: scores decoded text
descry/encodings/decode.py - Encoding detection → English scoring: scores candidates
descry/encodings/detect.py - Command handlers → Result rendering: renders results
descry/cli.py