Skip to content

Playfair Square

You'll encipher letters in pairs on a five by five grid built from a keyword, swap messages with a friend, and teach the grid to someone in ten minutes.

About

Playfair was the first practical cipher to work on pairs of letters instead of single ones, which flattens the frequency count a beginner relies on. It needs no equipment beyond a keyword and a five by five grid, which is why the British Army used it from the Boer War through the First World War and why the 1943 message that got John F. Kennedy's shipwrecked crew rescued went out in Playfair. The rules have three awkward corners (I and J share a cell, doubled letters get split with an X, and an odd message gets padded) and every beginner's first message goes wrong on one of them.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
5
Takes
One weekend
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people
Locked for now
Earn two more Common badges in Codes & Ciphers to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Build a five by five square from a keyword and write out the three rules in your own words. Write the keyword with repeats removed, then the rest of the alphabet, with I and J sharing a cell. Then write the rules: same row means take the letter to the right, same column means the letter below, and otherwise take the letter in your own row at the other letter's column. Take a photo of the square and the rules. Photo
  2. 2
    Encipher a message of at least 60 letters and send it to a friend with the keyword by a separate route. Split the plaintext into pairs first, putting an X between any doubled pair like LL and padding an odd end with X or Q. Mark each pair's case (row, column or rectangle) as you go so you can find errors later. Take a photo of the worksheet with the pairs marked and the ciphertext in groups. Photo
  3. 3
    Decipher the reply, including a doubled letter your friend put in on purpose. Deciphering reverses the row and column rules (left instead of right, above instead of below) but leaves the rectangle rule the same. Work out where the padding X's were and remove them. Take a photo of the reply with your worked plaintext and the padding crossed out. Photo
  4. 4
    Encipher the same message under two different keywords and compare the two ciphertexts. Line them up pair by pair and note how little they have in common. Then find the most common pair in each ciphertext and write what it probably stands for (TH is the usual suspect, and it is the first crack a solver looks for). Take a photo of the comparison. Photo
  5. 5
    Teach the square to someone in ten minutes and have them encipher a pair correctly. Use a fresh keyword they choose. Film the lesson and the moment they look up their first pair, or photograph their square with a correctly enciphered pair in their handwriting. Photo or video