PurFact

Codes and ciphers

16 questions · Maths & Logic

For as long as people have written, they have wanted to keep some things for certain readers only. The Spartans wound a strip of leather around a staff, the scytale; unwound, the letters made no sense. Julius Caesar is said to have shifted every letter three places along the alphabet, the Caesar cipher. Such methods were broken by frequency analysis, which the Arab scholar al-Kindi described as early as the ninth century: if you know which letters occur most often, you can read the message anyway. That a broken code can cost a life was learned in 1587 by Mary, Queen of Scots. Her enciphered letters to Anthony Babington were intercepted and decoded, and the plans against Elizabeth I took her to the scaffold. Safer seemed the Vigenère cipher with its keyword, long thought unbreakable until it fell in the nineteenth century. In 1854 Charles Wheatstone invented a method using pairs of letters that was named after his friend Lord Playfair. In the twentieth century codes helped decide wars. In 1917 the British deciphered a telegram from the German foreign secretary Arthur Zimmermann offering Mexico an alliance; soon afterwards the United States entered the war. The Enigma was first broken by the Pole Marian Rejewski, and later Alan Turing built his “Bombe”. In the Pacific the Navajo code talkers spoke in their own language, which the enemy never cracked. Today everyone encrypts, mostly without noticing. RSA works with a public key that anyone may know, hash functions produce irreversible fingerprints, and steganography hides messages in harmless pictures. And some puzzles still keep researchers busy: the Voynich manuscript in its unknown script and the Kryptos sculpture outside CIA headquarters.

Practise for free

PurFact brings every card back right before you would forget it. That's how knowledge sticks.

All questions with answers

Which method shifts every letter three places along the alphabet and is said to have been used in ancient Rome?

Show answer

Caesar cipher

A becomes D, B becomes E; with only 25 possible shifts it can be broken by trial and error.

💡 Did you know? The historian Suetonius reports that Augustus shifted by just one place.

Which Spartan device consisted of a staff around which a strip of leather was wound?

Show answer

Scytale

The message was written along the staff; only someone with a staff of the same thickness could read it again.

💡 Did you know? The scytale is an early example of transposition: the letters stay the same, only their order changes.

Which keyword method was known for centuries as “le chiffre indéchiffrable”?

Show answer

Vigenère cipher

Each letter is shifted differently according to the letters of the keyword, which defeats simple frequency analysis.

💡 Did you know? Friedrich Kasiski published a way to break it in 1863; Charles Babbage had managed it earlier but published nothing.

Which method, invented by Charles Wheatstone in 1854, enciphers pairs of letters using a five by five grid?

Show answer

Playfair cipher

It was named after Wheatstone’s friend Lord Playfair, who promoted it in government circles.

💡 Did you know? The British still used it as a field cipher in the Boer War and the First World War.

Which method, described by al-Kindi as early as the ninth century, breaks simple substitution ciphers?

Show answer

Frequency analysis

You count how often each symbol appears; in English the most common letter is E, followed by T.

💡 Did you know? Edgar Allan Poe had a treasure map deciphered exactly this way in his story “The Gold-Bug”.

Which queen was executed in 1587 after her enciphered letters to Anthony Babington were decoded?

Show answer

Mary Stuart

Francis Walsingham’s spies intercepted the letters, and his decipherer Thomas Phelippes broke the cipher.

💡 Did you know? Phelippes even forged a postscript to learn the names of the fellow conspirators.

Which German foreign secretary offered Mexico an alliance against the United States by telegram in 1917?

Show answer

Arthur Zimmermann

British codebreakers intercepted and deciphered the message; its publication helped bring the United States into the war in April 1917.

💡 Did you know? Zimmermann himself publicly confirmed that the telegram was genuine instead of dismissing it as a forgery.

Which Polish mathematician was the first to break into the Enigma, at the end of 1932?

Show answer

Marian Rejewski

He reconstructed the wiring of the rotors using group theory; with Henryk Zygalski and Jerzy Różycki he then read the traffic for years.

💡 Did you know? A few weeks before the war began in 1939 the Poles handed their knowledge and replica machines to the British and French.

Which British mathematician designed the “Bombe”, a machine for finding the daily Enigma settings?

Show answer

Alan Turing

During the war the Bombe tested huge numbers of possible rotor settings, building on the earlier work of the Poles.

💡 Did you know? Its name goes back to the Polish “bomba”, an earlier device by Marian Rejewski.

Which Native American people provided most of the US Marines’ code talkers in the Pacific War?

Show answer

Navajo

Around 400 Navajo passed on radio messages in their language, with code words for military terms.

💡 Did you know? To them a tank was a “tortoise” and a submarine an “iron fish”.

Which method, presented at MIT in 1977, relies on the difficulty of splitting large numbers into prime factors?

Show answer

RSA

The name stands for Ron Rivest, Adi Shamir and Leonard Adleman.

💡 Did you know? The British intelligence mathematician Clifford Cocks had found an equivalent method in 1973 but was not allowed to talk about it.

In asymmetric encryption, which key may be known to everyone?

Show answer

Public key

It is used to encrypt; only the holder of the matching private key can decrypt.

💡 Did you know? Whitfield Diffie and Martin Hellman published the idea in 1976, solving the old problem of handing over keys.

What maps data of any length to a short value of fixed length from which the data cannot be recovered?

Show answer

Hash function

Even a tiny change to the data produces a completely different value, which makes it useful for checking passwords and files.

💡 Did you know? Well run websites do not store your password, only its hash.

What is the art of hiding a message so that nobody notices it exists?

Show answer

Steganography

Unlike cryptography, it hides not the content but the very fact that there is a message.

💡 Did you know? Herodotus tells of a slave whose shaved head was tattooed with a message; he was sent off only once his hair had grown back.

Which illustrated volume in an unknown writing system is named after the antiquarian bookseller who bought it in 1912?

Show answer

Voynich manuscript

Radiocarbon dating places its vellum in the early fifteenth century; it is now held by Yale University’s Beinecke Library.

💡 Did you know? Besides the text it shows puzzling plants that no botanist has been able to identify with certainty, and bathing women in green pools.

Which sculpture in the grounds of CIA headquarters bears an encrypted text whose fourth part nobody could decipher for decades?

Show answer

Kryptos

The artist Jim Sanborn installed it at Langley in 1990; three of its four sections were solved in the 1990s.

💡 Did you know? The Greek name means “hidden”.

How PurFact works

Practise for free

Maths & Logic: all topics →