Athena Wiki

Classical Ciphers

cryptobeginner

Index of classical cipher pages for CTF crypto - Caesar, Vigenère, substitution, transposition, and frequency analysis.

cryptoclassicalcaesarvigeneresubstitutiontransposition

Classical Ciphers

Classical ciphers are the most beginner-friendly crypto challenges. They're solvable with statistical analysis and freely available online tools.

Pages in This Subsection

PageDifficultyKey Tool
Caesar / ROTBeginnerBrute force 25 shifts
VigenèreBeginnerdcode.fr, Kasiski test
SubstitutionBeginnerquipqiup.com
TranspositionBeginnerdcode.fr
Frequency AnalysisBeginnerManual + automated

Identification Flowchart

Mermaid diagram

The Three Questions

Answer these three questions in order - they narrow down the cipher type in under a minute.

For any classical cipher challenge, ask:

  1. Are the original letters present? (yes → transposition; no → substitution)
  2. What is the index of coincidence? (IC0.067\mathrm{IC} \approx 0.067: monoalphabetic; IC0.045\mathrm{IC} \approx 0.045: polyalphabetic)
  3. Is there a key hint in the challenge title or description?

Calculate Index of Coincidence

from collections import Counter
def ic(text):
    t = [c for c in text.upper() if c.isalpha()]
    n = len(t)
    freq = Counter(t)
    return sum(f*(f-1) for f in freq.values()) / (n*(n-1))

Interpret: ~0.067 → monoalphabetic or transposition; ~0.045 → Vigenère.

Check letter frequencies

Are the most frequent letters roughly E, T, A, O, I? If yes: transposition. If shifted uniformly: Caesar. If scrambled but same distribution: monoalphabetic substitution.

Check challenge metadata

Look at the challenge title, description, and hints. Words like "shift", "rot", "fence", "key", or "columnar" directly indicate the cipher type.

Apply the appropriate attack

Route to the correct page and apply the standard attack for that cipher type.

Online Tools

Tool / URLDescription
dcode.fr/cipher-identifierPaste text → get list of likely ciphers
dcode.fr/vigenere-cipherSolve Vigenère with key or key-length
dcode.fr/rail-fence-cipherRail fence decoder
dcode.fr/columnar-transposition-cipherColumnar transposition decoder
dcode.fr/frequency-analysisVisual letter frequency chart

Last updated on

On this page