π§ Substitution Cipher Solver
Interactive Cryptanalysis Workshop
π― Interactive Cipher Breaking Workspace
Welcome to the most comprehensive substitution cipher solver on the web! This interactive workshop provides a professional cryptanalysis environment where you can manually map cipher letters to plaintext, see real-time decryption previews, and leverage frequency analysis hints to crack even the toughest substitution ciphers.
π Quick Start Guide
- Enter Ciphertext: Paste your encrypted message in the text area below
- Analyze: Click "Analyze & Start Workshop" to see frequency data
- Map Letters: Tap a letter in the message, then pick what it stands for
- Preview: Watch the decoded text update in real-time
- Refine: Use hints, undo/redo, and word patterns to perfect your solution
- Export: Save your mapping or copy the decoded text
π Enter Ciphertext
ποΈ Your Message
Each tile shows your guess on top and the cipher letter underneath. Tap any tile, then pick the letter it stands for.
π§ Letter Map (AβZ)
π Frequency Analysis
π About Substitution Ciphers
What is a Substitution Cipher?
A substitution cipher is a method of encryption where each letter in the plaintext is replaced with another letter according to a fixed substitution alphabet. Unlike transposition ciphers that rearrange letters, substitution ciphers replace them entirely.
The most famous example is the Caesar cipher, where each letter is shifted by a fixed number of positions. However, general substitution ciphers can use any arbitrary mapping, making them much more complex to crack without analysis.
Breaking Substitution Ciphers
The key to breaking substitution ciphers lies in frequency analysis. In English:
- Most common letters: E, T, A, O, I, N, S, H, R
- Most common bigrams: TH, HE, IN, ER, AN, RE
- Most common trigrams: THE, AND, ING, HER, FOR
- Most common words: THE, OF, AND, TO, A, IN, THAT, IS
By analyzing the frequency of letters in the ciphertext and comparing them to expected English frequencies, we can make educated guesses about the substitution mapping.
Step-by-Step Solving Strategy
- Count frequencies: Identify the most common letters in the ciphertext
- Look for single-letter words: These are usually A or I
- Find common patterns: Look for THE, AND, ING patterns
- Test hypotheses: Try substitutions and check if they make sense
- Use word context: Partially decoded words can reveal more letters
- Iterate and refine: Adjust mappings based on decoded content
Historical Context
Substitution ciphers have been used for thousands of years. Julius Caesar used a shift cipher (Caesar cipher) in 58 BCE. Mary, Queen of Scots, was convicted of treason in 1586 partly because her substitution cipher was broken. During the American Civil War, both sides used word-substitution ciphers.
While simple substitution ciphers are no longer secure against modern cryptanalysis, they remain an excellent educational tool for understanding the fundamentals of cryptography and the power of frequency analysis.
π» Console Commands
Open your browser's developer console (F12) to access these commands:
workshop(text)
Open solver with text
quickSolve(text)
Auto-analyze and suggest
showHints()
Display frequency hints
exportMap()
Export current mapping
importMap(json)
Import saved mapping
saveProgress()
Save current state
loadProgress()
Load saved state
help()
Show all commands