In Our Time
In Our Time

Cryptography

Melvyn Bragg and guests discuss the origins and history of codes. In October 1586, in the forbidding hall of Fotheringhay Castle, Mary Queen of Scots was on trial for her life. Accused of treason and denied legal representation, she sat alone in the shadow of a vast and empty throne belonging to her

Topics Discussed

Episode Summary

Executive Summary: The programme traces cryptography from ancient message-hiding to public-key systems used in digital commerce. Guests explain how alphabetic substitution enabled ciphers, how frequency analysis broke them, and how successive innovations—from the Vigenère cipher and one-time pads to Enigma and public-key cryptography—responded to increasingly sophisticated threats and communication needs.

Main Topics: Steganography and early secret communication: Early methods concealed a message’s existence rather than its meaning: examples include messages hidden in wax tablets, written on silk and concealed in wax, or tattooed on a messenger’s shaved scalp. Classical ciphers and frequency analysis: Alphabetic writing made substitution and transposition possible. Caesar-style shifts and substitution ciphers were later vulnerable to frequency analysis, which uses the uneven occurrence of letters in a language to infer substitutions. Cryptography in political conflict: The discussion uses Mary Queen of Scots’s 1586 trial and the English Civil War to show how intercepted, deciphered correspondence could influence political and military outcomes. The panel notes that the historical details of Mary’s cipher case remain uncertain. Polyalphabetic ciphers and the one-time pad: The Vigenère cipher alternates between substitution alphabets to weaken letter-frequency patterns; repeated key sequences could still be exploited. The one-time pad is theoretically unbreakable when its key is truly random, as long as the message, kept secret, and used only once. Enigma and mechanized codebreaking: Radio made messages easier to intercept, increasing the need for encryption. Enigma mechanically produced changing substitutions, while Allied codebreakers had to obtain both the machine and its changing settings to decode communications. Public-key cryptography: Public-key methods let someone encrypt information with a publicly available method that only the intended recipient can decrypt with a private key. The panel describes this breakthrough as enabling secure communication without first sharing a secret key, supporting e-commerce and other technologies.

Key Arguments: Cryptographic methods develop in response to the communication problem of their era: longer-distance empires, political danger, military conflict and easily intercepted radio all increase the need to protect messages. Steganography and cryptography solve different problems: steganography hides that a message exists, while cryptography leaves a message visible but obscures its meaning. Simple substitution ciphers preserve language patterns. Because common letters remain common after substitution, frequency analysis can reveal likely mappings; added symbols and multiple alphabets were attempts to disrupt that analysis. Repeated patterns are a central weakness in ciphers. Vigenère-style systems can be attacked when their key sequence repeats, while a one-time pad avoids this only if its key is genuinely random, never reused and securely shared. Public-key cryptography changes the key-sharing model: unlike symmetric systems, it allows a sender to encrypt without first obtaining the recipient’s secret key, making secure communication at scale more practical. The speakers emphasize that codebreaking can shape history, but urge caution about the evidence in Mary Queen of Scots’s case: the correspondence and cipher story may be incomplete or contested.

Data Points: Mary Queen of Scots’s trial: October 1586 - The programme opens with her trial at Fotheringay Castle and discusses the disputed role of deciphered letters in her conviction. Mary’s imprisonment: 18 years - Lisa Jardine notes that Mary had been imprisoned for 18 years and had exchanged ciphered letters during that period. Early Arab cryptanalysis: 9th century - The panel credits Al-Kindi and scholarly work on texts with recognizing letter-frequency patterns that could break substitution ciphers. Alphabet size in the cipher examples: 26 letters - A Caesar shift has 25 nontrivial shifts; substitution and polyalphabetic examples use the 26-letter alphabet. One-time-pad illustration: 100 letters and 100 random shifts - Simon Singh illustrates that each letter can be shifted by an independently generated random value; the key must be as long as the message. Historical span of cryptographic practice: About 2,000 years - Singh describes the long-standing assumption that sender and receiver must share the same secret recipe, before public-key approaches changed that model. Delayed public recognition of secret work: About 20 years for Cox’s work; about 30 years for Enigma - Singh notes that the public learned of Cox’s cryptographic work and Britain’s Enigma work only after periods of secrecy.

Pivotal Quotes: "With cryptography, you hide the message by scrambling it up so nobody can read it. It's there in front of you, staring in the face, but nobody knows what it means. With steganography, you hide the existence of the message itself." — Simon Singh: A concise distinction between the two foundational approaches to secret communication. "Repetition is the bugbear of any pattern." — Simon Singh: Explains why reused or repeating cipher keys can expose messages to codebreakers. "I can scramble up a message using a recipe. I've never communicated with the receiver ever before, and yet they can still unscramble it." — Simon Singh: Summarizes the practical breakthrough of public-key cryptography.

Implications: The history shows that encryption and codebreaking continually adapt to each other. For modern users and digital services, secure communication depends not only on strong algorithms but also on sound key generation, protection and non-reuse.

🔓 Sign Up for Unlimited Episode Search

About In Our Time

View all episodes from In Our Time