Secret codes
12 tools and 8 challenges

The workshop

Encrypt and decrypt your own messages with the methods of spies, kings and codebreakers, from Caesar to the Enigma machine. Everything happens in your browser: nothing is sent.

The Caesar cipher

Each letter moves forward by the same number of places in the alphabet. Turn the wheel or set the shift, then try all 25 shifts to break a message.

Result

ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ+3

Atbash

The alphabet is turned round: A becomes Z, B becomes Y… Encrypting twice gives back the original message.

Result

Each letter of the keyword gives a different shift (A = 0, B = 1… Z = 25). The keyword repeats all along the message.

Result

The Polybius square

Each letter becomes two digits: its row number, then its column number. I and J share the same cell.

The square
12345
1ABCDE
2FGHI/JK
3LMNOP
4QRSTU
5VWXYZ
Result

The pigpen cipher

Each letter is replaced by the shape of the cell around it in the grids, with or without a dot. To decrypt, click on the symbols.

In symbols

Decrypt: click on the symbols

Decrypted message

The scytale

The message is written along a stick wrapped in a strip. The number of letters per turn of the stick is the key. Spaces are removed, and Xs fill the last row.

Result

The rail fence cipher

The letters are written in waves over several rows, then read row by row. The number of rows is the key. Spaces are removed.

Result

Morse code

Each letter becomes a series of dots and dashes. Letters are separated by a space, words by a slash “/”. You can also listen to the message.

Result
The Morse alphabet
A·–B–···C–·–·D–··E·F··–·G––·H····I··J·–––K–·–L·–··M––N–·O–––P·––·Q––·–R·–·S···T–U··–V···–W·––X–··–Y–·––Z––··

Braille

Each letter is a cell of six raised dots. To decrypt, paste braille characters or build a letter by clicking on the dots.

Result

Build a letter

⠀ ?

Binary code

Computers write each character with 0s and 1s. A plain letter fits in 8 bits; an accented letter needs 16.

Result

The Enigma machine

A simulation of the German army’s Enigma I: three rotors chosen from five, a reflector and a plugboard. With the same starting settings, encrypting and decrypting give the same result.

Left rotor
Middle rotor
Right rotor
Reflector and plugs
Result

Frequency analysis

Count the letters in a text and compare them with the language’s average frequencies. The text provided is encrypted with Caesar: which letter comes up most often?

your text average frequency in the language (approx.)

Challenges

Eight messages to decrypt with the workshop tools. The answers are not written in the page: only their fingerprint is stored, as with a password.

  1. ZHOO GRQH BRX IRXQG WKH FRGH

    Hint: A shift of three, like Julius Caesar.

  2. GSV GIVZHFIV RH FMWVI GSV YIRWTV

    Hint: The alphabet is turned round.

  3. -- .. ... ... .. --- -. / -.-. --- -- .--. .-.. . - .

    Hint: Dots and dashes…

  4. 43 45 33 43 23 24 33 15

    Hint: Row, then column.

  5. TEPIITEADNHSYSNHGRE

    Hint: Only two rows.

  6. TSSHWLEOEPRMADOSIN

    Hint: Three letters per turn of the stick.

  7. WICD QC KX LYSL

    Hint: The keyword has three letters and opens locks.

  8. KLBDI KRYLY NMN

    Hint: Rotors I, II, III, reflector B, everything on A, no plugs.