alan m. turing and the enigma machine

43
Alan MathisonTurning and the Enigma Machine A Talk for the Astronomical Society of Harringey by Michael Morris Franks

Upload: michael-franks

Post on 16-Jul-2015

277 views

Category:

Science


0 download

TRANSCRIPT

Page 1: Alan M. Turing and the Enigma Machine

Alan MathisonTurning and the Enigma Machine

A Talk for the Astronomical Society of

Harringey by

Michael Morris Franks

Page 2: Alan M. Turing and the Enigma Machine

Birthplace

Alan Turing was born in a nursing home in Paddington, London on 23 June 1912. It was then called Warrington Lodge.

Page 3: Alan M. Turing and the Enigma Machine

In 1922 the ten-year-old Alan was sent to a preparatory boarding school, Hazelhurst, in Sussex.

Page 4: Alan M. Turing and the Enigma Machine

In 1928 Alan Turing was allowed to enter

the sixth form of Sherborne School and to specialise in mathematics and

science. In the Science classes

he met Christopher Morcom, another

outstanding student and enthusiast for

science.

Page 5: Alan M. Turing and the Enigma Machine

Astronomy

Christopher and Alan discussed Astronomy. Alan had acquired a one inch and half telescope and Christopher had a four inch telescope.

Alan got hold of an old spherical glass lampshade, filled it with plaster of Paris paper and covered it with paper. He started to mark on the constellations based on his own observations. He trained himself to raise at four in the morning to observe the morning sky.

Page 6: Alan M. Turing and the Enigma Machine

Death of Christopher Morcom

Alan showed the star globe to Christopher. On the morning of the 7th of February 1930 Alan woke up at 2.45. He got out of bed and looked out of the window and looked at the stars. The moon was setting and Alan thought it was a sign of good bye to Morcom.

Christopher was taken ill at about that time and died six days later on 13th February 1930.

Page 7: Alan M. Turing and the Enigma Machine

AftermathAlan was devastated by Christopher’ death. He remain in contact with

the Morcoms.

He befriend a young boy Victor Beutell and together they work on codes and ciphers.

Alan also studied Einstein theory of relatively and endeavoured to explain it to his mother without too much success.

Alan obtained a scholarship to Cambridge where he embarked on the mathematics degree course or Tripos. Alan was awarded by Kings with research studentship and rediscovered the Central Limit Theorem and was elected to a Fellowship.

He then applied for a visiting Fellowship at Princeton and worked on a theory of a mechanical progress to solve a problem set by Hilbert.

Page 8: Alan M. Turing and the Enigma Machine

Turning Machine

Alan produced a paper “On Computable Numbers with a application to the Entscheidungsproblem”. This introduced the idea of a machine carrying out a series of logical operations and showed how more complex mathematical procedures

scould be built up.

He continued this work while at Princeton but returned to Cambridge in 1937.

War was coming and in the summer of 1938 he attended a government course on code breaking

Page 9: Alan M. Turing and the Enigma Machine

Out Break of War

Alan reported on 4th September1939 to the Government Code and Cypher School at Bletchley Park. He worked on how to break the codes produced by the German Enigma Machine.

Page 10: Alan M. Turing and the Enigma Machine

How to Use an Engima Machine

The Following slides have been taken from a presentation by Michael Koss

Page 11: Alan M. Turing and the Enigma Machine

The Enigma Machine

These slides are taken from a talk on the History of Computing

December 6, 2006Mike Koss

Page 12: Alan M. Turing and the Enigma Machine

Invention of Enigma

• Invented by Arthur Scherbius, 1918

• Adopted by German Navy, 1926

• Modified military version, 1930

• Two Additional rotors added, 1938

Page 13: Alan M. Turing and the Enigma Machine

How Enigma Works

Page 14: Alan M. Turing and the Enigma Machine

Scrambling Letters

• Each letter on the keyboard is connected to a lamp letter that depends on the wiring and position of the rotors in the machine.

• Right rotor turns before each letter.

Page 15: Alan M. Turing and the Enigma Machine

How to Use an Enigma

• Daily Setup– Secret settings

distributed in code books.

• Encoding/Decoding a Message

Page 16: Alan M. Turing and the Enigma Machine

Setup: Select (3) Rotors

• We’ll use I-II-III

Page 17: Alan M. Turing and the Enigma Machine

Setup: Rotor Ring Settings

• We’ll use A-A-A (or 1-1-1).

Page 18: Alan M. Turing and the Enigma Machine

Rotor Construction

Page 19: Alan M. Turing and the Enigma Machine

Setup: Plugboard Settings

• We won’t use any for our example (6 to 10 plugs were typical).

Page 20: Alan M. Turing and the Enigma Machine

Setup: Initial Rotor Position

• We’ll use “M-I-T” (or 13-9-20).

Page 21: Alan M. Turing and the Enigma Machine

Encoding: Pick a “Message Key”

• Select a 3-letter key (or indicator) “at random” (left to the operator) for this message only.

• Say, I choose “M-C-K” (or 13-3-11 if wheels are printed with numbers rather than letters).

Page 22: Alan M. Turing and the Enigma Machine

Encoding: Transmit the Indicator

• Germans would transmit the indicator by encoding it using the initial (daily) rotor position…and they sent it TWICE to make sure it was received properly.

• E.g., I would begin my message with “MCK MCK”.

• Encoded with the daily setting, this becomes: “NWD SHE”.

Page 23: Alan M. Turing and the Enigma Machine

Encoding: Reset Rotors

• Now set our rotors do our chosen message key “M-C-K” (13-3-11).

• Type body of message:“ENIGMA REVEALED” encodes to “QMJIDO MZWZJFJR”.

• Complete message is then:NWDSHE QMJIDO MZWZJFJR

Page 24: Alan M. Turing and the Enigma Machine

Decoding: Initial Setting

• Setup is the SAME for encoding and decoding. Set rotors to “M-I-T” (13-9-20).

Page 25: Alan M. Turing and the Enigma Machine

Decoding: Decode Indicator

• Type in message indicator: “NWDSHE”.

• Confirm it decodes to “MCK MCK” (a valid message key).

Page 26: Alan M. Turing and the Enigma Machine

Decoding: Message

• Set rotors to “M-C-K” (13-3-11)

• Type remainder of message:“QMJIDO MZWZJFJR” becomes“ENIGMA REVEALED”!

Page 27: Alan M. Turing and the Enigma Machine

A Paper Enigma Machine

• Each rotor is modeled as a strip of paper; the electrical contacts are replaced by matching letters on left and right side of the strip.

• Keyboard and Lamps are replaced by a vertical list of letters on the right.

• Reflecting rotor is replaced by a matching group of letters on the left.

• Plugboard and rotor “ring settings” are not modeled.

Page 28: Alan M. Turing and the Enigma Machine

Sample Encode

• Rotor order: I, II, III

• Rotor setting: M, C, K

• Encode the letter “E”

Page 29: Alan M. Turing and the Enigma Machine

Initial Setting

• Rotors I, II, and III• “Window settings” of “M-C-K”

Page 30: Alan M. Turing and the Enigma Machine

Encode a letter

• (First!) Advance the right-most rotor (III) by moving it up one row.

Page 31: Alan M. Turing and the Enigma Machine

“Manual” Electricity

• Start at “E” on the right column.

• Trace through each rotor, matching like letters.

Page 32: Alan M. Turing and the Enigma Machine

Rollover

• When the “notch” arrow reaches the window, move the wheel to it’s left up one row before encoding.

• When the center wheel arrow reaches the window, remember to move BOTH center and left wheels!

Page 33: Alan M. Turing and the Enigma Machine

Breaking Enigma

• Poles intercept commercial Enigma in the mail, 1928

• Recruit math students at Poznan University, 1929

• Poles (Rozycki, Zygalski, Rejewski) break the 3-rotor machine, 1932-1939

• Overwhelmed by 2 new rotors in 1938• Poles hand over methods and machine copy to

British and French in 1939• Government Code & Cipher “School” created at

Bletchley Park, 1939

Page 34: Alan M. Turing and the Enigma Machine

Vulnerabilities

• Encryption of doubled indicators reveals information about rotor positions.

• Operators choose poor message keys (e.g., “BER”, “LIN”, “HIT”, “LER”, “JJJ”, “QWE”).

• Letter never encrypts to itself (allows known plaintext attack).

Page 35: Alan M. Turing and the Enigma Machine

The Puzzle

GC46CFP

Alan Turing and the Enigma code

Decode

OAEZXV Z ZA E.XPL Y T.GDA

Further Messages

[ADYMZWAMXOKWOOVRGCIKLHEGJAVYOJGPQEFKHRVCS]

[ABOPILAMFOHLNJVNJPE]

Page 36: Alan M. Turing and the Enigma Machine

Delilah Speech Scrambler 1944

Page 37: Alan M. Turing and the Enigma Machine

ACE

1946 to 1948 Turingf worked at the National Physical Laboratory in Teddington on an electronic Computer. However there were problems and he resigned in 1948

The Piloit Ace computer was completed in 1950and was the fastest of its day.

It was used to reveal how metal fatigue caused the loss of a Comet Jet Airliner and to determine the structure of Vitamin B12

Page 38: Alan M. Turing and the Enigma Machine

Manchester Computer 1948 used for the Atomic Bomb Programme

Page 39: Alan M. Turing and the Enigma Machine

Computing Machinery and Intelligence 1950

Page 40: Alan M. Turing and the Enigma Machine

Morphogenesis

Watching the Daisies Grow. Looked at how complex structures arise out of simple reaction-diffusion equations

Worked on program Fircone which used the Fibonacci numbers.

Breaking the code book of nature.

Page 41: Alan M. Turing and the Enigma Machine

Burglary and Exposure

Pleaded Guilty to Gross Indecency and given injunctions .

Did not appear to curb his libedo.

Went on trips outside UK including trip to Corfu

Norwegian Boyfriend Kjell Carlson not permitted to enter UK

Page 42: Alan M. Turing and the Enigma Machine

Death of Turing 6th June 1954

Accident, Suicide or Termination with Extreme Prejudice.

Was under surveillance.

Papers relating to surveillance not released under 30 years rule- sealed under 100 years rule??

Page 43: Alan M. Turing and the Enigma Machine

References

1) Engima Simulator - http://users.telenet.be/d.rijmenants

2) Alan Turing Scrapbook -

http://www.turing.org.uk/scrapbook

3) Paper Engima Machine -

http://mckoss.com/Crypto/Paper%20Enigma.pdf

4) Engima Simulator http://startpad.googlecode.com/hg/labs/js/enigma/enigma-sim.html