Early life and the Turing machine
Alan Turing was born in London on 23 June 1912. He studied mathematics at King's College, Cambridge, and in 1935, at 22, was elected a fellow of the college for a dissertation proving the central limit theorem of probability.
In 1936 he wrote "On Computable Numbers, with an Application to the Entscheidungsproblem". To answer a question in mathematical logic, whether there is a mechanical method that can decide every mathematical statement, he imagined a very simple machine:
- an endless tape divided into squares, each holding one symbol
- a head that reads and writes one square at a time and moves left or right
- a finite set of internal states
- a table of rules saying what to write, where to move and which state to enter next
He showed that one such machine, a universal machine, can imitate any other if it is given that machine's rule table as input, which is the idea behind the stored-program computer. He also proved that some problems cannot be solved by any machine at all, so the answer to the original question was no. Those results are the foundation of the theory of computation.
Bletchley Park and Enigma
The German armed forces encrypted their radio traffic with the Enigma machine, whose army version had about 158 million million million possible daily settings. From Caesar to Enigma explains how the machine worked.
Turing had worked part-time for the Government Code and Cypher School before the war, and on 4 September 1939, the day after Britain declared war, he reported to its wartime home at Bletchley Park. He started from the work of the Polish mathematicians Marian Rejewski, Jerzy Różycki and Henryk Zygalski, who had broken Enigma in the 1930s and built a machine called the bomba to search for settings. They had handed their results to Britain and France in July 1939.
The bombe
German changes to their procedures in 1940 made the Polish methods stop working, so Turing designed a new machine, the bombe. It started from a crib, a guess at a few words of plain text and where they sat in a message, such as a weather report header. The bombe then ran through rotor positions at high speed, and wherever the crib led to a logical contradiction, it rejected that setting. The few settings that survived were tested by hand. Gordon Welchman added an improvement called the diagonal board that cut the number of false stops sharply.
The first bombe went into service in 1940, and by the end of the war more than two hundred were running in Britain. The bombe did not decrypt messages itself; it found the day's key, and the messages were then deciphered on replica Enigma machines.
Naval Enigma
Turing led Hut 8, the section working on the German navy's Enigma, which used a more careful procedure than the army and air force versions. He developed Banburismus, a statistical method that compared pairs of messages to narrow down which rotors were in use, so the scarce bombes could be used on fewer possibilities. Reading U-boat signals let the Allies route convoys around submarine groups in the Battle of the Atlantic.
The intelligence from Bletchley, code-named Ultra, also helped in North Africa and before D-Day. How much it shortened the war is debated; an estimate of about two years is often quoted.
Turingery and the Lorenz cipher
German high command used a different machine for its most important teleprinter messages: the Lorenz SZ40/42, code-named Tunny at Bletchley. It had 12 wheels where Enigma had three or four. In 1942 Turing devised a hand method, known as Turingery, for working out the settings of the Lorenz wheels from intercepted traffic.
To read Tunny in volume, Max Newman's section at Bletchley needed machines. Turing had recommended the engineer Tommy Flowers, who designed and built Colossus. It went into operation in early 1944 and is regarded as the first programmable electronic digital computer. Ten were working by the end of the war.
Probability in codebreaking
Around 1941 Turing wrote two papers on the use of probability in codebreaking, including "The Applications of Probability to Cryptography". They stayed classified until 2012, when they were released to the UK National Archives. They describe how to weigh evidence for and against a hypothesis about a key and add it up, using a unit he called the ban. This was Bayesian statistics applied to cryptanalysis, years before the approach became common in other fields, and statistical tests of this kind are still how cryptanalysts and randomness tests work today.
Turing's work also made the point that a cipher's security is a question of how much computation breaking it takes. Modern public key cryptography, which appeared in the 1970s, depends on problems such as factoring large numbers, which are easy to set up and believed to need an infeasible amount of work to reverse. Turing did not invent public key cryptography or complexity theory, but his theory of computation is where that way of thinking about security begins.
Computers and artificial intelligence
After the war Turing worked at the National Physical Laboratory, where in 1945 and 1946 he produced one of the first complete designs for a stored-program electronic computer, the Automatic Computing Engine (ACE). A smaller version, the Pilot ACE, ran in 1950. He then moved to the University of Manchester and wrote software for its computers.
His 1950 paper "Computing Machinery and Intelligence" opens with the question "Can machines think?" and proposes the imitation game, now called the Turing test: can a machine hold a typed conversation well enough that a person can't reliably tell it from a human? He predicted that by about the year 2000 an average interrogator would have no more than a 70% chance of telling machine from human after five minutes of questions. The paper also describes machines that learn, starting from a simple "child machine" that is taught. It ends with the line: "We can only see a short distance ahead, but we can see plenty there that needs to be done."
Prosecution and death
In 1952 Turing was prosecuted for "gross indecency" because of a relationship with a man, which was then a crime in Britain. To avoid prison he accepted a year of hormone treatment, a form of chemical castration. His conviction cost him his security clearance and with it any further work for GCHQ, Bletchley Park's successor.
Turing died on 7 June 1954, sixteen days before his 42nd birthday, of cyanide poisoning. The inquest recorded suicide. Some historians have argued that his death may have been an accident, and the question remains open.
Recognition
| 1966 | The Association for Computing Machinery creates the Turing Award, the highest award in computer science |
| 1999 | Time magazine names him one of the 100 most important people of the 20th century |
| 2009 | Prime Minister Gordon Brown issues an official apology for his treatment |
| 2013 | Queen Elizabeth II grants him a posthumous royal pardon |
| 2017 | The "Alan Turing law" pardons men convicted under the same historical laws |
| 2021 | The Bank of England puts his portrait on the new £50 note |
What Turing left to cryptography
- Machine-aided codebreaking. The bombe showed that a well-designed machine could test hypotheses about a key far faster than people, and today almost all cryptanalysis is done by computer.
- Statistics as a cryptanalytic tool. Weighing evidence across thousands of letters, as in Banburismus, is the ancestor of the frequency and correlation tests used today.
- Security measured in computation. Every modern cipher is judged by how much work it would take to break.
- The computer itself, which every modern cipher runs on.
Enigma also showed what Turing exploited at Bletchley: the cipher was strong on paper, but predictable messages and careless habits gave the codebreakers their way in. The same lesson applies to every system in use today.
Further reading
- From Caesar to Enigma: A History of Military Cryptography Two thousand years of military codes and the people who broke them.
- The Vigenère Cipher: 300 Years of 'Unbreakable' Security A keyword cipher that held out for three centuries, and how it fell.
- Public Key Cryptography: The Math, Explained Simply How two strangers agree on a secret over a public line.