CipherSteps

Learn how ciphers work

Follow worked examples of Caesar, Vigenère, Rail Fence, and more. See each calculation, then try a short exercise yourself.

Worked examples

Affine cipher

Encode HELLO one letter at a time, then use the same keys to decode RCLLA.

Open Affine cipher

Worked examples

Caesar cipher

Watch shift 3 turn HELLO, WORLD! into KHOOR, ZRUOG!, then reverse each step.

Open Caesar cipher

Worked examples

Morse code

Count the tones and gaps in three separate Morse letters: S, O, and S.

Open Morse code

Worked examples

Playfair

Follow the extra X in BALXLOON and see why a decoder leaves it in place.

Open Playfair

Worked examples

Polybius Square

Trace JIG through the I/J square and see which spelling detail the code loses.

Open Polybius Square

Worked examples

Rail Fence

Trace a three-rail zigzag, count the letters on each rail, and put the message back together.

Open Rail Fence

Worked examples

Vigenère cipher

Line up LEMON with ATTACKATDAWN and follow every letter of the result.

Open Vigenère cipher

Cipher rules and reference guides

Look up alphabet rules, valid keys, Morse timing, and the information each method can recover.