WEBVTT - TechStuff Classic: TechStuff Ponders an Enigma

0:00:04.120 --> 0:00:07.160
<v Speaker 1>Get in touch with technology with tech Stuff from how

0:00:07.200 --> 0:00:13.720
<v Speaker 1>stuff Works dot Com. Hey there, and welcome to tech Stuff.

0:00:13.760 --> 0:00:16.640
<v Speaker 1>I'm your host, Jonathan Strickland. I'm an executive producer with

0:00:16.680 --> 0:00:19.760
<v Speaker 1>How Stuff Works in love all things tech, and today

0:00:20.360 --> 0:00:24.599
<v Speaker 1>is a Friday. We gotta get down on Friday. As

0:00:24.640 --> 0:00:26.720
<v Speaker 1>Rebecca Black would say. But this is not an episode

0:00:26.720 --> 0:00:30.920
<v Speaker 1>about Rebecca Black, who I would argue is an Enigma. Instead,

0:00:31.440 --> 0:00:35.559
<v Speaker 1>this is an episode about the Enigma, the Enigma coding machine,

0:00:36.120 --> 0:00:39.760
<v Speaker 1>and we originally published this classic episode on October nineteenth,

0:00:39.880 --> 0:00:42.280
<v Speaker 1>two thousand eleven. Chris Poulette and I talked about the

0:00:42.400 --> 0:00:45.720
<v Speaker 1>Enigma machine, what it was, and what it took to

0:00:45.920 --> 0:00:48.400
<v Speaker 1>break the code. I hope you enjoy, and I'll talk

0:00:48.400 --> 0:00:51.320
<v Speaker 1>to you again in just a moment. Today we're gonna

0:00:51.320 --> 0:00:55.040
<v Speaker 1>talk about um, something that actually came to mind when

0:00:55.360 --> 0:00:59.760
<v Speaker 1>during the process of recording our episode on quantum computers

0:01:00.000 --> 0:01:02.480
<v Speaker 1>sort of led to a discussion of quantum cryptography and

0:01:02.480 --> 0:01:06.319
<v Speaker 1>cryptography is something that actually fascinates probably just about all

0:01:06.360 --> 0:01:09.280
<v Speaker 1>of how stuff works dot Com considering um, and it

0:01:09.360 --> 0:01:13.720
<v Speaker 1>also comes to play it touches on another podcast topic

0:01:13.760 --> 0:01:18.360
<v Speaker 1>that we tackled months and months ago. Mr Turing Oh Yes,

0:01:18.440 --> 0:01:20.560
<v Speaker 1>Alan Touring is gonna come up in this very important

0:01:20.560 --> 0:01:23.560
<v Speaker 1>in this discussion as well. We're talking about the specifically

0:01:23.600 --> 0:01:27.759
<v Speaker 1>the Enigma machine, which was a cipher machine used by

0:01:27.840 --> 0:01:33.000
<v Speaker 1>Germany during World War Two. Yeah. The funny thing is, UM,

0:01:33.040 --> 0:01:37.160
<v Speaker 1>if you've watched any history or read any history about

0:01:37.440 --> 0:01:41.920
<v Speaker 1>World War two and uh specifically the war between Germany

0:01:41.959 --> 0:01:45.080
<v Speaker 1>and the Allies, UM, you have a sense of what

0:01:45.120 --> 0:01:48.600
<v Speaker 1>this machine meant to the German war effort. But the

0:01:48.600 --> 0:01:51.520
<v Speaker 1>thing is, what I don't think comes across in a

0:01:51.560 --> 0:01:55.960
<v Speaker 1>lot of those um discussions is that there's no one

0:01:56.520 --> 0:02:00.400
<v Speaker 1>Enigma machine, and it certainly wasn't unknown to the world

0:02:00.400 --> 0:02:04.240
<v Speaker 1>before that because the the Enigma goes back years before

0:02:04.280 --> 0:02:05.920
<v Speaker 1>the start of World War Two. It was actually a

0:02:05.920 --> 0:02:10.639
<v Speaker 1>commercial machine used to encrypt messages. And in fact, because

0:02:10.639 --> 0:02:13.240
<v Speaker 1>it was a commercial machine, it gave some people a

0:02:13.320 --> 0:02:16.280
<v Speaker 1>leg up on on figuring out how to crack the

0:02:16.320 --> 0:02:20.800
<v Speaker 1>code because it was generally considered to be a practically

0:02:20.960 --> 0:02:25.079
<v Speaker 1>uncrackable code if you were to follow the most careful

0:02:25.960 --> 0:02:29.240
<v Speaker 1>security procedures possible. And we'll get into why that is.

0:02:29.360 --> 0:02:31.680
<v Speaker 1>But before, I think, before we jump into what the

0:02:31.720 --> 0:02:34.440
<v Speaker 1>machine did and what how it did it, we need

0:02:34.480 --> 0:02:38.000
<v Speaker 1>to talk a little bit just about cipher's in general. Please. Alright,

0:02:38.080 --> 0:02:40.640
<v Speaker 1>So a cipher really, and in this case, we're talking

0:02:40.639 --> 0:02:44.480
<v Speaker 1>about creating a coded message, and uh, there are different

0:02:44.480 --> 0:02:46.240
<v Speaker 1>ways of doing this, lots of different ways. You can

0:02:46.280 --> 0:02:49.640
<v Speaker 1>create a new alphabet, you can try and hide things

0:02:49.639 --> 0:02:53.760
<v Speaker 1>and images. That's called agraphy right where. What you can

0:02:53.760 --> 0:02:57.200
<v Speaker 1>also do it is hide messages within a file, like

0:02:57.200 --> 0:03:00.000
<v Speaker 1>like the code for a file. So I could send

0:03:00.480 --> 0:03:04.919
<v Speaker 1>a seemingly harmless file to Chris, but if you were

0:03:04.919 --> 0:03:07.359
<v Speaker 1>to actually look into the code of that file, hidden there,

0:03:07.360 --> 0:03:10.720
<v Speaker 1>not displayed in any form of executable function, might be

0:03:10.760 --> 0:03:13.320
<v Speaker 1>a message. So there are lots of different ways of

0:03:13.320 --> 0:03:15.799
<v Speaker 1>getting secret messages across, but a very common one is

0:03:15.880 --> 0:03:18.280
<v Speaker 1>using a cipher where you replace one letter of the

0:03:18.280 --> 0:03:22.680
<v Speaker 1>alphabet with another. All right, So the very basic version

0:03:22.680 --> 0:03:27.040
<v Speaker 1>of that is a mono alphabetic substitution cipher. In height,

0:03:27.760 --> 0:03:30.560
<v Speaker 1>it means you're using just the one alphabet and that

0:03:30.760 --> 0:03:34.360
<v Speaker 1>one letter is always going to represent another letter always

0:03:34.560 --> 0:03:36.560
<v Speaker 1>in that cipher. Oh yeah, my friends and I used

0:03:36.600 --> 0:03:39.640
<v Speaker 1>to do this back in grade school. Yeah, you know

0:03:39.680 --> 0:03:42.320
<v Speaker 1>we we would say, okay, so every letter, you know,

0:03:42.400 --> 0:03:44.440
<v Speaker 1>the letter A is represented by the letter D, and

0:03:44.480 --> 0:03:46.640
<v Speaker 1>it just goes down the alphabet like that. You've just

0:03:46.680 --> 0:03:49.840
<v Speaker 1>shifted the alphabet to the to the right a couple

0:03:49.880 --> 0:03:52.880
<v Speaker 1>of places, sure like that, and then you just go

0:03:53.040 --> 0:03:56.440
<v Speaker 1>from there. And so in order to to decode this,

0:03:57.040 --> 0:03:59.400
<v Speaker 1>if you're not just trying to crack it, I mean,

0:03:59.400 --> 0:04:01.400
<v Speaker 1>if you're actually coding it, like you're the person who

0:04:01.440 --> 0:04:04.680
<v Speaker 1>is supposed to receive this message, you would need to

0:04:04.720 --> 0:04:09.040
<v Speaker 1>know which letter you know, how far over did the

0:04:09.080 --> 0:04:12.400
<v Speaker 1>alphabet shift, right, So if if A is B and

0:04:12.520 --> 0:04:14.560
<v Speaker 1>bs C and C is D, then you know, all right,

0:04:14.560 --> 0:04:17.200
<v Speaker 1>well it's a. It shifted one place, and so I

0:04:17.320 --> 0:04:20.320
<v Speaker 1>know to shift all these letters back a spot so

0:04:20.360 --> 0:04:23.000
<v Speaker 1>that I can decode this. All right, that's your very

0:04:23.040 --> 0:04:26.560
<v Speaker 1>basic mono alphabetic substitution. Now those are easy to crack.

0:04:26.800 --> 0:04:29.720
<v Speaker 1>It's easy for anyone to crack, yes, all right, as

0:04:29.720 --> 0:04:33.520
<v Speaker 1>long as you know some basic u rules and and

0:04:33.640 --> 0:04:37.640
<v Speaker 1>tendencies in your native language, you can crack these. For example,

0:04:37.960 --> 0:04:40.560
<v Speaker 1>you can start looking for two letters that are like

0:04:40.720 --> 0:04:44.600
<v Speaker 1>letters that are are doubled up. You start looking at those,

0:04:44.600 --> 0:04:46.799
<v Speaker 1>and then you think, okay, which letters in the English

0:04:46.880 --> 0:04:51.520
<v Speaker 1>language are the most frequently paired together, Like two T

0:04:51.800 --> 0:04:55.320
<v Speaker 1>s would be an example. Oh, two teas happen a lot,

0:04:55.360 --> 0:04:58.240
<v Speaker 1>so that that letter there could represent a T. Let

0:04:58.240 --> 0:05:00.159
<v Speaker 1>me see if that starts to fit other things. You

0:05:00.160 --> 0:05:02.599
<v Speaker 1>look for patterns, and you find these patterns, and you

0:05:02.640 --> 0:05:05.560
<v Speaker 1>can decode things. You can make this a little more difficult,

0:05:05.760 --> 0:05:08.200
<v Speaker 1>actually a lot more difficult, depending on how sophisticated you

0:05:08.240 --> 0:05:13.719
<v Speaker 1>get using a polyalphabetic substitution. All right, so there's this

0:05:14.160 --> 0:05:17.280
<v Speaker 1>one kind of cipher called a Vignier cipher. Uh, this

0:05:17.360 --> 0:05:19.640
<v Speaker 1>is a little more complex now and a Vineer cipher.

0:05:19.680 --> 0:05:22.800
<v Speaker 1>You've got a grid. It's twenty six boxes across in

0:05:22.839 --> 0:05:27.200
<v Speaker 1>twenty six boxes tall. All right. On that top level

0:05:27.279 --> 0:05:30.280
<v Speaker 1>of the grid, you have the alphabet spelled out normally A, B, C,

0:05:30.400 --> 0:05:32.839
<v Speaker 1>D all the way to Z, and then on the

0:05:32.880 --> 0:05:35.920
<v Speaker 1>next one you shift that letter over once, so now

0:05:35.960 --> 0:05:39.320
<v Speaker 1>it's B through A. So the last the last one

0:05:39.400 --> 0:05:41.279
<v Speaker 1>is gonna be A. And then you go the next

0:05:41.400 --> 0:05:43.400
<v Speaker 1>lay up level down you shift it over against. Now

0:05:43.400 --> 0:05:46.200
<v Speaker 1>it's C through B and you do this all the

0:05:46.240 --> 0:05:49.280
<v Speaker 1>way down until you get to Z to A at

0:05:49.279 --> 0:05:52.360
<v Speaker 1>the very bottom, all right, or not zo a zero

0:05:52.560 --> 0:05:56.960
<v Speaker 1>of zo y um. I'm sitting here, I'm I'm mixing

0:05:57.000 --> 0:06:00.599
<v Speaker 1>myself up now the way Vinnier cipher's because you would

0:06:00.640 --> 0:06:04.799
<v Speaker 1>have a key phrase or keyword. Okay, so it's something

0:06:04.839 --> 0:06:07.320
<v Speaker 1>that you and the person you're writing to have both

0:06:07.360 --> 0:06:11.280
<v Speaker 1>agreed upon in advance. So let's say that, for for

0:06:11.960 --> 0:06:13.960
<v Speaker 1>Chris and I, would we sit there and we decay

0:06:14.040 --> 0:06:18.480
<v Speaker 1>text stuff is our key phrase. You would look at

0:06:18.480 --> 0:06:21.560
<v Speaker 1>your grid and you would go down that first column.

0:06:21.720 --> 0:06:24.760
<v Speaker 1>You go all the way down to the T column,

0:06:24.800 --> 0:06:27.480
<v Speaker 1>the column that starts the alphabet begins with the letter T.

0:06:28.839 --> 0:06:31.240
<v Speaker 1>And then let's say that my first word is to

0:06:31.520 --> 0:06:36.640
<v Speaker 1>Chris is going to be uh, howdy. I then look

0:06:36.800 --> 0:06:40.760
<v Speaker 1>across the top of that grid for the H on

0:06:40.839 --> 0:06:43.440
<v Speaker 1>the very top row. All right, So I've got my

0:06:43.520 --> 0:06:47.520
<v Speaker 1>finger on the t row based on the first column,

0:06:47.760 --> 0:06:52.160
<v Speaker 1>and I'm looking at the H column in the top row,

0:06:52.839 --> 0:06:56.400
<v Speaker 1>and I find the intersection of those two so where

0:06:56.400 --> 0:06:59.400
<v Speaker 1>the t row and the H column meet, and then

0:06:59.440 --> 0:07:04.520
<v Speaker 1>that let represents H. And then for oh, I go

0:07:04.680 --> 0:07:07.320
<v Speaker 1>because my key phrases tech stuff, I go to the

0:07:07.400 --> 0:07:10.800
<v Speaker 1>E column or E row on the first column. So

0:07:10.800 --> 0:07:13.040
<v Speaker 1>I look at that first column, which is again in

0:07:13.120 --> 0:07:15.520
<v Speaker 1>alphabetical order, so it's A B, C, D E. So

0:07:15.560 --> 0:07:17.640
<v Speaker 1>I go to the E row, and then I look

0:07:17.680 --> 0:07:21.040
<v Speaker 1>for the O in the top row, and I find

0:07:21.040 --> 0:07:24.400
<v Speaker 1>the intersection of those, uh, the column of O and

0:07:24.440 --> 0:07:27.080
<v Speaker 1>the row of E and that and that becomes my

0:07:27.200 --> 0:07:31.880
<v Speaker 1>Oh so Chris, because he knows that the key phrases

0:07:31.920 --> 0:07:34.400
<v Speaker 1>tech stuff, he knows which road to look at, and

0:07:34.440 --> 0:07:37.560
<v Speaker 1>then he looks at the encoded letter. He finds that

0:07:37.720 --> 0:07:41.000
<v Speaker 1>in the in within that row, looks up to see

0:07:41.000 --> 0:07:43.160
<v Speaker 1>what column it is, and that's the letter it it

0:07:43.360 --> 0:07:48.600
<v Speaker 1>decodes into. Now this might sound really complex. That's kind

0:07:48.600 --> 0:07:51.520
<v Speaker 1>of the point. Well, you don't want the enemy to

0:07:51.880 --> 0:07:54.920
<v Speaker 1>decipher your code, because then it will learn what you're

0:07:55.000 --> 0:07:58.400
<v Speaker 1>up to, and the element of surprise is lost. So

0:07:59.760 --> 0:08:04.960
<v Speaker 1>this um this method becomes less useful if you are

0:08:05.000 --> 0:08:09.120
<v Speaker 1>starting to encode longer and longer messages, because that increases

0:08:09.160 --> 0:08:12.640
<v Speaker 1>the chance that the enemy or someone who is not

0:08:12.760 --> 0:08:15.200
<v Speaker 1>meant to read the code can figure out your key

0:08:15.240 --> 0:08:18.320
<v Speaker 1>phrase or keyword. And if they figure out that keyword,

0:08:18.560 --> 0:08:21.280
<v Speaker 1>then they've unlocked everything. That's all they need. They just

0:08:21.360 --> 0:08:25.280
<v Speaker 1>need to create a vinyer cipher graph or chart and

0:08:25.320 --> 0:08:29.280
<v Speaker 1>then use that key phrase to decode what you've said. Now,

0:08:29.320 --> 0:08:32.960
<v Speaker 1>the enigment machine takes and a similar approach to the

0:08:33.040 --> 0:08:37.719
<v Speaker 1>Vignier cipher and complicates it on a massive scale and

0:08:37.800 --> 0:08:42.440
<v Speaker 1>also automates it. Yeah, because um, you know with any

0:08:42.480 --> 0:08:46.920
<v Speaker 1>of these codes that the key, uh is probably the

0:08:46.920 --> 0:08:52.679
<v Speaker 1>most important part. Um. If you intercept a coded transmission

0:08:52.800 --> 0:08:57.600
<v Speaker 1>and you have no idea how it has been enciphered,

0:08:58.000 --> 0:09:00.520
<v Speaker 1>it's going to take you much longer should try to

0:09:00.520 --> 0:09:05.040
<v Speaker 1>break that code. Um. Whereas if somebody on the other

0:09:05.120 --> 0:09:06.640
<v Speaker 1>end has the key to it, they'll be able to

0:09:06.720 --> 0:09:09.880
<v Speaker 1>decipher it in no time or a little bit more

0:09:09.920 --> 0:09:13.440
<v Speaker 1>than no time. Um. So that's that's one of the

0:09:13.440 --> 0:09:16.679
<v Speaker 1>tricky parts, is I mean you can uh you know,

0:09:17.320 --> 0:09:19.120
<v Speaker 1>during wor War two, they were there were all kinds

0:09:19.120 --> 0:09:22.000
<v Speaker 1>of different ways to send messages, including things like one

0:09:22.040 --> 0:09:25.400
<v Speaker 1>time pads, which is a a pad used of paper

0:09:25.520 --> 0:09:28.760
<v Speaker 1>used with a particular code this is the one for

0:09:28.880 --> 0:09:32.080
<v Speaker 1>this message. And uh. This would be used out in

0:09:32.080 --> 0:09:34.840
<v Speaker 1>the field by agents who couldn't carry something like a

0:09:34.920 --> 0:09:39.120
<v Speaker 1>rotor machine like the Enigma with them. Uh you know.

0:09:39.200 --> 0:09:41.360
<v Speaker 1>And the thing is if the if you lose, if

0:09:41.400 --> 0:09:43.720
<v Speaker 1>the person on the other end loses the key for

0:09:43.760 --> 0:09:47.360
<v Speaker 1>that particular pad, um, it's just gonna take forever. But

0:09:47.400 --> 0:09:50.400
<v Speaker 1>the Enigma was a way to to automate this UM.

0:09:50.480 --> 0:09:53.319
<v Speaker 1>This process, and this machine, which was first patented N

0:09:54.200 --> 0:09:57.200
<v Speaker 1>ended up being pivotal UH in World War Two, both

0:09:57.280 --> 0:10:01.319
<v Speaker 1>for the Germans and well act really the the axis

0:10:01.320 --> 0:10:06.000
<v Speaker 1>because they did have a Japanese version that they used, UM,

0:10:06.040 --> 0:10:08.240
<v Speaker 1>but also for the Allies when they were able to

0:10:08.320 --> 0:10:11.760
<v Speaker 1>figure out how the machine worked, and because it does

0:10:11.800 --> 0:10:15.120
<v Speaker 1>have its own flaws. UM. So let's let's talk about

0:10:15.160 --> 0:10:17.640
<v Speaker 1>what was in an Enigma machine and what it looked

0:10:17.640 --> 0:10:22.280
<v Speaker 1>like and and how it encoded letters UM. Each of

0:10:22.280 --> 0:10:25.560
<v Speaker 1>the machines, going back to the very first one, the

0:10:25.640 --> 0:10:30.480
<v Speaker 1>Enigma A had rotor wheels UM and a keyboard. It

0:10:30.520 --> 0:10:32.800
<v Speaker 1>looks a little uh if you've never seen one of

0:10:32.840 --> 0:10:35.360
<v Speaker 1>these machines, and they all look a little different there,

0:10:35.400 --> 0:10:37.960
<v Speaker 1>Like I said, uh, several different types of machines that

0:10:38.120 --> 0:10:40.640
<v Speaker 1>evolved over time, but all of them had a keyboard

0:10:40.679 --> 0:10:44.040
<v Speaker 1>on it, UM arranged in more of a well at

0:10:44.080 --> 0:10:46.079
<v Speaker 1>first it was an alphabetic fashion and then turned into

0:10:46.160 --> 0:10:50.760
<v Speaker 1>more of the uh German keyboard style, but so kind

0:10:50.760 --> 0:10:53.240
<v Speaker 1>of like a typewriter. Yeah. And the very first one

0:10:53.280 --> 0:10:55.000
<v Speaker 1>looked a little bit like one of the old timey

0:10:55.040 --> 0:10:58.199
<v Speaker 1>cash registers. It was so big, UM. But yeah, I

0:10:58.240 --> 0:11:01.520
<v Speaker 1>mean these had rotor wheels, and so you would type

0:11:01.679 --> 0:11:04.360
<v Speaker 1>a letter, let's say A, and depending on the way

0:11:04.400 --> 0:11:07.720
<v Speaker 1>the rotor wheels were set, it would produce a completely

0:11:07.760 --> 0:11:09.920
<v Speaker 1>different letter. Yeah. And the way it would produce it

0:11:09.960 --> 0:11:14.000
<v Speaker 1>as it had lamps twenty six lamps, each one marked

0:11:14.040 --> 0:11:16.960
<v Speaker 1>with a letter, and the lamp that lit up would

0:11:16.960 --> 0:11:21.800
<v Speaker 1>be the encoded letter for that particular key press. Yeah.

0:11:21.800 --> 0:11:23.640
<v Speaker 1>These were the ones used in World War Two. The

0:11:23.679 --> 0:11:26.720
<v Speaker 1>earlier ones did not have lamps. UM. But yeah, I

0:11:26.720 --> 0:11:29.400
<v Speaker 1>mean the ones that we're talking about, specifically around World

0:11:29.440 --> 0:11:31.680
<v Speaker 1>War two. That made it easier for the operator to

0:11:32.000 --> 0:11:34.880
<v Speaker 1>identify which letter was being used because these most of

0:11:34.880 --> 0:11:37.640
<v Speaker 1>these machines had no printer. Yeah. Usually you would have

0:11:37.679 --> 0:11:40.760
<v Speaker 1>two people working on both sides of this, both the

0:11:40.920 --> 0:11:43.360
<v Speaker 1>encoding and decoding side. You would have one person who

0:11:43.440 --> 0:11:45.520
<v Speaker 1>would be pressing the keys and another person who would

0:11:45.520 --> 0:11:51.120
<v Speaker 1>either be writing down the letter um the encoded letter,

0:11:51.160 --> 0:11:53.880
<v Speaker 1>or writing down the decoded letter. Because an important part

0:11:53.920 --> 0:11:55.880
<v Speaker 1>of the Enigma machine, and actually one of the reasons

0:11:55.920 --> 0:12:01.040
<v Speaker 1>why it was eventually broken, was that it was a

0:12:01.080 --> 0:12:03.880
<v Speaker 1>device that if if you if you type the let's

0:12:04.000 --> 0:12:07.000
<v Speaker 1>let's just say for for argument's sake, that if I

0:12:07.040 --> 0:12:09.960
<v Speaker 1>type the letter A, the letter Q comes up on

0:12:10.040 --> 0:12:12.960
<v Speaker 1>the lamp. Well, if I were to take a second

0:12:13.080 --> 0:12:16.600
<v Speaker 1>Enigma machine that was that was configured the same way

0:12:16.600 --> 0:12:18.640
<v Speaker 1>as the first one, and that's really important. We'll talk

0:12:18.679 --> 0:12:20.800
<v Speaker 1>more about why that is in a minute. And I

0:12:20.840 --> 0:12:24.040
<v Speaker 1>typed the letter Q, the letter A would light up,

0:12:24.600 --> 0:12:26.439
<v Speaker 1>and then all I would have to do, essentially, is

0:12:26.480 --> 0:12:29.520
<v Speaker 1>take my coded message that was sent to me, type

0:12:29.520 --> 0:12:32.440
<v Speaker 1>it out on my Enigma machine that is configured the

0:12:32.520 --> 0:12:37.160
<v Speaker 1>same way that the encoded message machines was configured, and

0:12:37.200 --> 0:12:39.760
<v Speaker 1>then have someone else write down which lamps let up

0:12:39.800 --> 0:12:43.120
<v Speaker 1>and I have the decoded message, except that the people

0:12:43.120 --> 0:12:45.640
<v Speaker 1>in England were saying, no, this is gibberish, it's new useless,

0:12:45.640 --> 0:12:49.040
<v Speaker 1>and someone says, no, you idiots in German. Anyway, the

0:12:50.160 --> 0:12:51.880
<v Speaker 1>I thought I would make you laughing. I thought about

0:12:51.920 --> 0:12:54.520
<v Speaker 1>that last night and I was just waiting to unleash it.

0:12:54.920 --> 0:12:57.600
<v Speaker 1>We have more to say about the Enigma machine and

0:12:57.640 --> 0:12:59.959
<v Speaker 1>how it worked, but first let's take a quick break

0:13:00.120 --> 0:13:09.920
<v Speaker 1>to thank our sponsor. The cool thing here is that,

0:13:09.920 --> 0:13:12.120
<v Speaker 1>all right, So imagine that each of these roters think

0:13:12.120 --> 0:13:15.840
<v Speaker 1>of it like a cylinder. Okay, so imagine a cylinder

0:13:16.720 --> 0:13:21.559
<v Speaker 1>and on the on the ends of the cylinder are

0:13:21.760 --> 0:13:24.480
<v Speaker 1>rods and contact points. So there's rods on one side

0:13:24.480 --> 0:13:26.800
<v Speaker 1>and contact points on the other. Right, Okay, this is

0:13:26.840 --> 0:13:30.480
<v Speaker 1>where an electrical current can flow through. Now there are

0:13:30.520 --> 0:13:34.200
<v Speaker 1>twenty six rods and twenty six contact points, so there's

0:13:34.240 --> 0:13:37.640
<v Speaker 1>one for each of the letters the alphabet. Now, if

0:13:37.720 --> 0:13:41.880
<v Speaker 1>you were silly, you would just wire these straight across,

0:13:42.200 --> 0:13:46.640
<v Speaker 1>so a would all Position one would would also would

0:13:46.679 --> 0:13:49.600
<v Speaker 1>be a straight wire from the rod to the contact

0:13:49.880 --> 0:13:53.439
<v Speaker 1>and position one. Now, of course that's not the way

0:13:53.440 --> 0:13:56.040
<v Speaker 1>the Enigma machine works. What happened was they wired it

0:13:56.120 --> 0:13:59.280
<v Speaker 1>so that position one would go to a different contact

0:13:59.320 --> 0:14:02.080
<v Speaker 1>on the other side. So position one might go to

0:14:03.200 --> 0:14:06.839
<v Speaker 1>Rod one might go to contact twelve. Rod two might

0:14:06.880 --> 0:14:09.880
<v Speaker 1>go to contact twenty three. Rod three might go to

0:14:09.960 --> 0:14:12.760
<v Speaker 1>contact one. That kind of thing. And you had this

0:14:12.920 --> 0:14:16.640
<v Speaker 1>massive wires inside the rotor that determine which ones went

0:14:16.640 --> 0:14:19.640
<v Speaker 1>to what. And then the rotor would fit inside the

0:14:19.760 --> 0:14:23.920
<v Speaker 1>Enigma machine, which would uh electricity from a battery would

0:14:23.960 --> 0:14:27.000
<v Speaker 1>come through, and depending on what key you pressed, that

0:14:27.040 --> 0:14:29.880
<v Speaker 1>would allow the pathway to go through to a certain rod.

0:14:30.640 --> 0:14:32.920
<v Speaker 1>The the electricity would go through the wire in the

0:14:33.040 --> 0:14:36.040
<v Speaker 1>rotor come out the side of the contact that again

0:14:36.200 --> 0:14:39.320
<v Speaker 1>is not directly across from the position of the rod.

0:14:39.600 --> 0:14:42.760
<v Speaker 1>And that's the basic idea of how it would substitute

0:14:42.760 --> 0:14:46.800
<v Speaker 1>a letter. Now if it if the rotor did not turn,

0:14:47.000 --> 0:14:49.280
<v Speaker 1>or if there were not more rotors, you would just

0:14:49.360 --> 0:14:53.320
<v Speaker 1>have a mono alphabetic substitution, like every time you type A,

0:14:53.720 --> 0:14:56.640
<v Speaker 1>the letter Q would light up if nothing else changed,

0:14:56.960 --> 0:14:58.760
<v Speaker 1>if that's all it did, in which case it would

0:14:58.760 --> 0:15:00.680
<v Speaker 1>have been a useless machine. But because people would have

0:15:00.680 --> 0:15:03.280
<v Speaker 1>been able to break that without ever having to spend

0:15:03.280 --> 0:15:04.920
<v Speaker 1>more than a couple of hours on a on a

0:15:05.320 --> 0:15:09.320
<v Speaker 1>on a message. Now, a lot of the machines, UM,

0:15:09.560 --> 0:15:13.440
<v Speaker 1>we're using three rotors. UM. Now here's here's where this

0:15:13.480 --> 0:15:17.480
<v Speaker 1>makes it more complex. Uh, these machines came with five

0:15:17.600 --> 0:15:22.640
<v Speaker 1>rotors uh named numbered with Roman numerals UM and every

0:15:23.200 --> 0:15:26.480
<v Speaker 1>here here again, here's part of the key. UM. The

0:15:26.520 --> 0:15:30.280
<v Speaker 1>German command would send out the monthly use of wheels.

0:15:30.280 --> 0:15:33.640
<v Speaker 1>So you might put the wheels in for one two,

0:15:34.520 --> 0:15:37.280
<v Speaker 1>so four would be in the leftmost position, one would

0:15:37.320 --> 0:15:38.640
<v Speaker 1>be in the middle, two would be in the right

0:15:38.640 --> 0:15:42.960
<v Speaker 1>most position. And every time the operator presses a letter,

0:15:43.000 --> 0:15:47.160
<v Speaker 1>let's say J the third. Actually, think of this if

0:15:47.200 --> 0:15:50.640
<v Speaker 1>you've ever seen a car odometer that measures the distance.

0:15:51.240 --> 0:15:54.560
<v Speaker 1>The rotor on the right moves one notch every time

0:15:54.600 --> 0:15:58.160
<v Speaker 1>the operator presses a button. So the operator press is J,

0:15:59.120 --> 0:16:01.760
<v Speaker 1>the rotor on the right turns one notch. The operator

0:16:01.800 --> 0:16:04.480
<v Speaker 1>presses in, the rotor turns one notch, and then the

0:16:04.520 --> 0:16:10.240
<v Speaker 1>middle um. Every so often, the middle rotor moves one notch,

0:16:11.080 --> 0:16:15.200
<v Speaker 1>and then again with the leftmost the final it moves

0:16:15.360 --> 0:16:19.680
<v Speaker 1>more slowly right, so as the operators typing the message out,

0:16:20.040 --> 0:16:24.040
<v Speaker 1>the rotors are turning to incipher the message more thoroughly.

0:16:24.960 --> 0:16:27.800
<v Speaker 1>The idea being that you're not repeating the same alphabet

0:16:28.520 --> 0:16:31.000
<v Speaker 1>to frequently. In fact, you it would take you, it

0:16:31.040 --> 0:16:33.600
<v Speaker 1>would take you an incredibly long message to be able

0:16:33.640 --> 0:16:36.160
<v Speaker 1>to repeat pete such an alphabet ah. And that's one

0:16:36.160 --> 0:16:38.920
<v Speaker 1>of the tricks. Eventually it could happen, which is why

0:16:38.960 --> 0:16:42.720
<v Speaker 1>the Germans limited their message length to two fifty characters.

0:16:42.760 --> 0:16:47.320
<v Speaker 1>So to to explain this even further, if I press

0:16:47.520 --> 0:16:49.880
<v Speaker 1>let's say that I just have the one rotor in there,

0:16:50.600 --> 0:16:53.040
<v Speaker 1>just for simplicity sakes, So I've got one rotor in there,

0:16:53.400 --> 0:16:55.520
<v Speaker 1>and if I press the letter A, the letter Q

0:16:55.840 --> 0:16:58.920
<v Speaker 1>lights up. Because that's just the way the wiring is

0:16:59.040 --> 0:17:02.720
<v Speaker 1>that rotor. After I pressed the letter A, the rotor

0:17:02.880 --> 0:17:06.800
<v Speaker 1>turns one notch. I pressed the letter A. Well, Q

0:17:07.000 --> 0:17:09.320
<v Speaker 1>is not gonna light up because what's just happened is

0:17:09.359 --> 0:17:12.920
<v Speaker 1>that there's a new rod where the electricity makes contact

0:17:12.920 --> 0:17:15.280
<v Speaker 1>with that rod. It's in position and you know A,

0:17:15.520 --> 0:17:18.199
<v Speaker 1>the first rod was in position one. Now that the

0:17:18.280 --> 0:17:21.320
<v Speaker 1>rotor has turned one notch, the rotor, the rod that's

0:17:21.320 --> 0:17:24.359
<v Speaker 1>in position for the letter A is rod too. So

0:17:24.400 --> 0:17:27.879
<v Speaker 1>instead of Q lighting up, maybe J lights up. So

0:17:27.960 --> 0:17:31.080
<v Speaker 1>you could just keep pressing A and a different letter

0:17:31.160 --> 0:17:33.600
<v Speaker 1>is going to light up every time, except for one

0:17:33.640 --> 0:17:35.960
<v Speaker 1>other exception we should point out, which was again something

0:17:36.000 --> 0:17:39.000
<v Speaker 1>that helped the Allies break the Enigma code. They the

0:17:39.080 --> 0:17:45.040
<v Speaker 1>Germans had decided foolishly, as it turns out, that no

0:17:45.280 --> 0:17:49.600
<v Speaker 1>letter would ever incipher to itself, so B can never

0:17:49.720 --> 0:17:51.680
<v Speaker 1>b B. Yes, so if you saw the letter B

0:17:51.880 --> 0:17:54.719
<v Speaker 1>in a message, you automatically knew it wasn't B. So

0:17:54.800 --> 0:17:57.520
<v Speaker 1>you've just you've just and that sounds like it's minuscule

0:17:57.640 --> 0:18:01.240
<v Speaker 1>that you've only eliminated one option, but that was huge.

0:18:01.880 --> 0:18:04.320
<v Speaker 1>I mean, without that, it would have been so much

0:18:04.359 --> 0:18:07.960
<v Speaker 1>harder to to decode these messages now when you add

0:18:08.000 --> 0:18:12.200
<v Speaker 1>that second rotor in uh so, let's say that again,

0:18:12.240 --> 0:18:14.960
<v Speaker 1>we're gonna go with the positions. So the so we

0:18:15.000 --> 0:18:16.800
<v Speaker 1>have the rods in the twenty six positions and the

0:18:16.840 --> 0:18:19.200
<v Speaker 1>contacts on the other side of the cylinder in twenty

0:18:19.280 --> 0:18:23.360
<v Speaker 1>six positions. Intristy comes in through rod one and it's

0:18:23.400 --> 0:18:28.400
<v Speaker 1>going out through contact twelve. Then you have your second rotors.

0:18:28.400 --> 0:18:33.440
<v Speaker 1>So the second rotor, Rod twelve is accepting the electricity,

0:18:33.480 --> 0:18:37.560
<v Speaker 1>but it's contact that the second rotors, Rod twelve is

0:18:37.560 --> 0:18:42.920
<v Speaker 1>connected to contact uh seven. So you've got now something

0:18:42.960 --> 0:18:45.720
<v Speaker 1>that's going in through contact or Rod one and coming

0:18:45.720 --> 0:18:48.639
<v Speaker 1>out contact seven. Once it gets through the second rotor,

0:18:48.880 --> 0:18:51.000
<v Speaker 1>you had a third rotor in. That makes it even

0:18:51.000 --> 0:18:53.879
<v Speaker 1>more complicated. So it's like you've just added a huge

0:18:53.920 --> 0:18:58.400
<v Speaker 1>mass of wires to this device and it gets even

0:18:58.600 --> 0:19:02.320
<v Speaker 1>more complex. I'm sorry, did you say huge massive wires? Yeah,

0:19:02.960 --> 0:19:07.520
<v Speaker 1>like the Stekker Brett. Yes, So here's where the massive

0:19:07.520 --> 0:19:11.240
<v Speaker 1>wires also comes in. There was a plugboard that came

0:19:11.280 --> 0:19:14.240
<v Speaker 1>with many of these Enigma machines, not all, but many. Yeah.

0:19:14.280 --> 0:19:17.360
<v Speaker 1>Do you remember if you think back to images you've

0:19:17.400 --> 0:19:20.000
<v Speaker 1>seen of old telephone operators when they had to connect

0:19:20.000 --> 0:19:23.080
<v Speaker 1>a call. They would physically take a wire and connect

0:19:23.359 --> 0:19:26.159
<v Speaker 1>one person and plug it into the slot for the

0:19:26.200 --> 0:19:30.439
<v Speaker 1>other person to make the connection. Well. On the Enigma machine,

0:19:31.080 --> 0:19:35.359
<v Speaker 1>uh they had wires and plugs that went from that

0:19:35.520 --> 0:19:38.520
<v Speaker 1>basically connected the letters. Yeah. So in other words, you

0:19:38.600 --> 0:19:41.240
<v Speaker 1>might connect the letter A and the letter J together

0:19:41.400 --> 0:19:43.679
<v Speaker 1>with A with a wire, which means every time you

0:19:43.720 --> 0:19:46.920
<v Speaker 1>press the letter A, it's acting as if you press

0:19:47.000 --> 0:19:50.800
<v Speaker 1>the letter J. So that add added yet another layer

0:19:51.000 --> 0:19:55.879
<v Speaker 1>of of encryption on top of this device. Uh So, No,

0:19:56.119 --> 0:20:00.000
<v Speaker 1>you're no longer sending a message to contact one because

0:20:00.040 --> 0:20:02.480
<v Speaker 1>as that would be the one for A, you're sending

0:20:02.480 --> 0:20:05.040
<v Speaker 1>it to different or not contact but Rod, you're seeing

0:20:05.040 --> 0:20:10.000
<v Speaker 1>it to a different Rod. Uh so, Sterling. Maybe so

0:20:10.160 --> 0:20:14.320
<v Speaker 1>by setting the alphabet position on each rotor, setting the

0:20:14.440 --> 0:20:17.400
<v Speaker 1>rotors in the particular order, choosing you know which rotor

0:20:17.440 --> 0:20:19.680
<v Speaker 1>you want. Because these rotors, by the way, we're not

0:20:20.119 --> 0:20:22.760
<v Speaker 1>um alpha. They if you were to look at a

0:20:22.840 --> 0:20:25.320
<v Speaker 1>rotor and turn it and it had the letters on it,

0:20:25.320 --> 0:20:28.280
<v Speaker 1>it would not be an alphabetical order. They mixed up

0:20:28.359 --> 0:20:30.560
<v Speaker 1>the order of the letters too. They wanted to make

0:20:30.560 --> 0:20:33.719
<v Speaker 1>it as complex as possible, so depending upon the the

0:20:33.840 --> 0:20:36.159
<v Speaker 1>rotors you choose the order you put them in and

0:20:36.160 --> 0:20:39.440
<v Speaker 1>the plugs that you plug into the plugboard. That would

0:20:39.480 --> 0:20:42.840
<v Speaker 1>determine what would happen if you pressed any particular key

0:20:42.960 --> 0:20:46.760
<v Speaker 1>at any particular time. Plus, it's in German and you're

0:20:46.840 --> 0:20:51.359
<v Speaker 1>probably transmitting it in morse code, so that's the level

0:20:51.600 --> 0:20:53.560
<v Speaker 1>that you have to get through in order to get

0:20:53.560 --> 0:20:57.960
<v Speaker 1>to that original message. In addition, UM, the Germans tended

0:20:58.000 --> 0:21:02.639
<v Speaker 1>to break up messages into regular patterns of UM five

0:21:02.760 --> 0:21:05.520
<v Speaker 1>characters at a time, so you know, a F B

0:21:05.800 --> 0:21:10.160
<v Speaker 1>Q G space, you know, so the message wasn't written out,

0:21:10.320 --> 0:21:13.359
<v Speaker 1>and so you wouldn't say, okay, well this this word

0:21:13.400 --> 0:21:16.240
<v Speaker 1>has three letters and they're only you know, yeah, there's

0:21:16.240 --> 0:21:19.160
<v Speaker 1>only so many word German that would have three letters.

0:21:19.240 --> 0:21:21.840
<v Speaker 1>They broke it up so that once, you know, there

0:21:21.920 --> 0:21:24.159
<v Speaker 1>was really no way to tell how long the word was.

0:21:24.400 --> 0:21:27.520
<v Speaker 1>So a single word and remember this is German, so

0:21:27.800 --> 0:21:31.840
<v Speaker 1>these words could be you know, characters long. So a

0:21:31.920 --> 0:21:36.600
<v Speaker 1>single word might might spend multiple five letters segments, so

0:21:36.680 --> 0:21:39.560
<v Speaker 1>you know, it might begin on letter four of this

0:21:39.760 --> 0:21:43.840
<v Speaker 1>five letter group and then finish three groups later down

0:21:43.880 --> 0:21:46.560
<v Speaker 1>the line. And that might have just been the word

0:21:46.640 --> 0:21:51.640
<v Speaker 1>for I don't know, like car um so, uh, yeah,

0:21:51.920 --> 0:21:54.800
<v Speaker 1>it just made it made it more difficult, obvious, skated

0:21:54.840 --> 0:21:57.360
<v Speaker 1>the meaning of the original phrase as much as possible.

0:21:58.160 --> 0:22:02.080
<v Speaker 1>So how would you ever decode such a message? Now?

0:22:02.119 --> 0:22:05.840
<v Speaker 1>If you've got it really set up so that everyone

0:22:06.000 --> 0:22:09.760
<v Speaker 1>knows how the how to set up their own particular

0:22:09.880 --> 0:22:12.800
<v Speaker 1>Enigma machine based upon a codebook, you would have to

0:22:12.840 --> 0:22:16.960
<v Speaker 1>have like a codebook that was um given out by leadership. Right,

0:22:17.000 --> 0:22:20.960
<v Speaker 1>you'd have to have someone in charge saying, on this day,

0:22:21.000 --> 0:22:23.520
<v Speaker 1>for all messages that we send out, this is the

0:22:23.560 --> 0:22:27.040
<v Speaker 1>configuration you have to use, because if you didn't have it,

0:22:27.040 --> 0:22:30.399
<v Speaker 1>you wouldn't be able to decode it. Right. The German

0:22:30.440 --> 0:22:33.560
<v Speaker 1>command would specify the wheel order and the ring setting,

0:22:33.600 --> 0:22:37.040
<v Speaker 1>and the the steckering the cross plugging. Stecker means plug,

0:22:37.240 --> 0:22:39.400
<v Speaker 1>so they called it a plug board. It was Stecker

0:22:39.440 --> 0:22:42.679
<v Speaker 1>brett um. But the thing is the cipher clerk would

0:22:42.880 --> 0:22:45.600
<v Speaker 1>uh would basically turn the three wheels to a position

0:22:46.040 --> 0:22:50.159
<v Speaker 1>at random whatever he wanted it to be, and then

0:22:50.200 --> 0:22:53.840
<v Speaker 1>they would twice put in the own randomly random text

0:22:53.840 --> 0:22:57.159
<v Speaker 1>setting or message setting UM. And this was the indicator,

0:22:57.200 --> 0:23:00.400
<v Speaker 1>which is six letter character UM. And then you set

0:23:00.440 --> 0:23:05.080
<v Speaker 1>your wheels at that three letter text setting and it

0:23:05.119 --> 0:23:09.560
<v Speaker 1>would give you the UM, the the code that the

0:23:09.600 --> 0:23:11.679
<v Speaker 1>person who would on the other side is supposed to

0:23:11.680 --> 0:23:14.439
<v Speaker 1>know to get through it. Um. The thing is it

0:23:14.440 --> 0:23:17.320
<v Speaker 1>would always have This is another thing that that boggles

0:23:17.320 --> 0:23:19.879
<v Speaker 1>in mind to me. UM, with something with a device

0:23:19.960 --> 0:23:23.840
<v Speaker 1>this capable. UM. They would transmit some things in clear text,

0:23:23.920 --> 0:23:28.560
<v Speaker 1>like the preamble basically say the time of day, the

0:23:28.640 --> 0:23:30.840
<v Speaker 1>number of letters in the text, and things like that

0:23:30.840 --> 0:23:33.720
<v Speaker 1>that was sent and clear. I guess it was necessary,

0:23:33.760 --> 0:23:37.320
<v Speaker 1>but it made it easier to figure out exactly what

0:23:37.400 --> 0:23:39.200
<v Speaker 1>was going on and when it was set. And that

0:23:39.600 --> 0:23:42.600
<v Speaker 1>turned out to be important later. Um. And they would

0:23:43.040 --> 0:23:46.119
<v Speaker 1>tell you, you you know, certain things, um, you know, and

0:23:46.160 --> 0:23:48.520
<v Speaker 1>everything came out in five letter groups and the indicator

0:23:48.520 --> 0:23:51.760
<v Speaker 1>which was in six letters. They changed that later, which

0:23:51.760 --> 0:23:54.040
<v Speaker 1>made it more difficult for the Allies, but still at

0:23:54.080 --> 0:23:56.679
<v Speaker 1>that point it was too late. Yeah. And Uh. It

0:23:56.760 --> 0:23:59.879
<v Speaker 1>also didn't help that, you know, the Allies new to

0:24:00.119 --> 0:24:02.879
<v Speaker 1>look for certain words that would be used over and

0:24:02.920 --> 0:24:06.240
<v Speaker 1>over again in messages. They called them cribs. Yes, they

0:24:06.240 --> 0:24:10.680
<v Speaker 1>would look for these cribs are possible cribs and uh,

0:24:11.040 --> 0:24:15.000
<v Speaker 1>based upon just letter groupings, and they could, you know,

0:24:15.160 --> 0:24:19.520
<v Speaker 1>eliminate cribs from certain groups of letters. Again, because if

0:24:19.600 --> 0:24:21.840
<v Speaker 1>a certain letter appeared at a certain part of a

0:24:21.880 --> 0:24:24.480
<v Speaker 1>word and it was the same letter that should have been,

0:24:24.560 --> 0:24:27.280
<v Speaker 1>you knew it wasn't that word, right, because of course

0:24:27.320 --> 0:24:30.960
<v Speaker 1>I letters never going encode as itself using an Enigma machine.

0:24:31.280 --> 0:24:35.879
<v Speaker 1>So um yeah, using these basic rules, it sounds like

0:24:35.920 --> 0:24:38.480
<v Speaker 1>it's astronomical, like the number of things you would have

0:24:38.520 --> 0:24:40.920
<v Speaker 1>to eliminate, and really it is pretty it's a pretty

0:24:40.920 --> 0:24:43.639
<v Speaker 1>big number. But that's where folks like Touring came in.

0:24:43.720 --> 0:24:47.920
<v Speaker 1>They they knew a bit about the Enigma machine already

0:24:47.960 --> 0:24:52.960
<v Speaker 1>because the Enigma, the whole rotor based cryptography device, as

0:24:53.040 --> 0:24:56.879
<v Speaker 1>Chris said, predated World War Two. Yeah, it's not that

0:24:56.960 --> 0:24:58.920
<v Speaker 1>the trick is not getting your hands on a machine.

0:24:59.400 --> 0:25:03.040
<v Speaker 1>It's figure out how what settings the machine is being

0:25:03.160 --> 0:25:05.480
<v Speaker 1>used to encode so that you can break the message.

0:25:05.520 --> 0:25:07.520
<v Speaker 1>Although it did help because if you got your hands

0:25:07.520 --> 0:25:09.080
<v Speaker 1>on the machine, you could at least find out what

0:25:09.119 --> 0:25:11.560
<v Speaker 1>the wiring was, yes, and you could you could then

0:25:12.000 --> 0:25:15.800
<v Speaker 1>start to eliminate various combinations because you're going to say, okay,

0:25:16.080 --> 0:25:19.560
<v Speaker 1>if it's if it's a Roman numeral one rotor, then

0:25:19.680 --> 0:25:22.440
<v Speaker 1>this position is always going to map to this contact

0:25:23.040 --> 0:25:26.159
<v Speaker 1>and you could start to eliminate things that way. Uh.

0:25:26.400 --> 0:25:30.480
<v Speaker 1>They they over in Poland there were cryptographers who are

0:25:30.520 --> 0:25:34.960
<v Speaker 1>breaking these codes before World War two broke out, Yes, unfortunate,

0:25:34.960 --> 0:25:36.480
<v Speaker 1>and they had a machine that they would use to

0:25:36.480 --> 0:25:40.840
<v Speaker 1>do that called the bomba yep and uh and someone

0:25:40.920 --> 0:25:44.520
<v Speaker 1>set them up the bomba yeah. Actually they when war

0:25:44.600 --> 0:25:49.320
<v Speaker 1>broke out and it became obvious that things were uh,

0:25:50.000 --> 0:25:51.520
<v Speaker 1>that it was going to be discovered that they were

0:25:51.520 --> 0:25:54.520
<v Speaker 1>able to do this, the machine was destroyed, which is

0:25:54.800 --> 0:25:56.719
<v Speaker 1>some of the Some of the code breakers made their

0:25:56.760 --> 0:25:59.520
<v Speaker 1>way over to England and helped the English code breakers

0:26:00.119 --> 0:26:02.600
<v Speaker 1>by adding to the level of knowledge about what the

0:26:02.720 --> 0:26:06.400
<v Speaker 1>Enigma machine was and how it worked. They also had

0:26:06.440 --> 0:26:11.760
<v Speaker 1>some breakthroughs that stemmed just from from luck and and

0:26:11.880 --> 0:26:16.520
<v Speaker 1>uh and bravery really because we're talking about uh times

0:26:16.560 --> 0:26:21.679
<v Speaker 1>where where Allies captured a German group that had an

0:26:21.840 --> 0:26:25.880
<v Speaker 1>Enigma machine, often something like a submarine. Um, they would

0:26:25.960 --> 0:26:28.040
<v Speaker 1>capture that and if they were able to they could

0:26:28.080 --> 0:26:31.040
<v Speaker 1>get the machine and the codebook, which would essentially tell

0:26:31.080 --> 0:26:34.399
<v Speaker 1>them pretty much everything they needed to know. But uh,

0:26:34.520 --> 0:26:39.400
<v Speaker 1>meanwhile Touring was working on his own BOMBA. Yes, he was, um. Yeah,

0:26:39.720 --> 0:26:42.359
<v Speaker 1>before we go into uh into that I want to

0:26:42.359 --> 0:26:45.720
<v Speaker 1>point out that we left out there. There's more to

0:26:46.119 --> 0:26:49.639
<v Speaker 1>the Enigma machines UM than we really went into, and

0:26:49.680 --> 0:26:52.080
<v Speaker 1>I would recommend if you're interested in learning more UM,

0:26:52.080 --> 0:26:56.560
<v Speaker 1>there's a website for UH, the Crypto Museum, which is

0:26:56.680 --> 0:26:59.200
<v Speaker 1>in the Netherlands. It's a virtual museum, but crypto museum

0:26:59.280 --> 0:27:03.320
<v Speaker 1>dot com. UM. We'll tell you probably everything you ever

0:27:03.359 --> 0:27:06.880
<v Speaker 1>wanted to know about the Enigma machines and UH and more.

0:27:07.680 --> 0:27:10.359
<v Speaker 1>Have you guys cracked the code yet? Yes, there was

0:27:10.400 --> 0:27:14.400
<v Speaker 1>a code hidden in this episode. Think it over while

0:27:14.440 --> 0:27:24.920
<v Speaker 1>we take a break to thank our sponsor. The Navy,

0:27:24.960 --> 0:27:27.199
<v Speaker 1>by the way, that was the three rotor machine was

0:27:27.240 --> 0:27:30.200
<v Speaker 1>the one used by the Army Air Force. The Navy

0:27:30.280 --> 0:27:33.879
<v Speaker 1>had a four wheel machine, yes, which was even more complex,

0:27:34.040 --> 0:27:38.600
<v Speaker 1>and the the Secret Service, UH, the people who were

0:27:38.600 --> 0:27:41.680
<v Speaker 1>in the the high intelligence groups used a completely different machine.

0:27:41.680 --> 0:27:45.040
<v Speaker 1>We're not completely different, but UH used even more difficult

0:27:45.040 --> 0:27:47.600
<v Speaker 1>machine to crack UM than that, and they all had

0:27:47.680 --> 0:27:51.000
<v Speaker 1>different variations on that. And in general, the Navy tended

0:27:51.040 --> 0:27:54.560
<v Speaker 1>to practice better security measures and UH made it. It

0:27:54.560 --> 0:27:57.080
<v Speaker 1>made it much more challenging to break that code. The

0:27:57.200 --> 0:28:01.080
<v Speaker 1>Army and Air Force, by contrast, were not as as

0:28:01.200 --> 0:28:05.000
<v Speaker 1>careful and so their codes were broken faster than the

0:28:05.080 --> 0:28:11.359
<v Speaker 1>Navy's UM. It's you know, part of part of decoding

0:28:11.480 --> 0:28:15.720
<v Speaker 1>the the Enigma machine came into figuring out the wiring

0:28:15.840 --> 0:28:19.159
<v Speaker 1>of the system, and part of it came from, you know,

0:28:19.200 --> 0:28:22.760
<v Speaker 1>more traditional cryptographic approaches where you're looking for patterns and

0:28:22.800 --> 0:28:24.920
<v Speaker 1>you're looking for a key phrases, and you're looking for

0:28:25.600 --> 0:28:30.560
<v Speaker 1>uh things that could indicate that um that you've stumbled

0:28:30.560 --> 0:28:33.680
<v Speaker 1>onto something. So if you if you receive several coded messages,

0:28:34.160 --> 0:28:36.120
<v Speaker 1>I think a lot of problems is that we think

0:28:36.160 --> 0:28:38.640
<v Speaker 1>of of decoding as you get one message and you're

0:28:38.640 --> 0:28:40.680
<v Speaker 1>trying to figure it all out based on that one message.

0:28:40.920 --> 0:28:43.760
<v Speaker 1>There were hundreds of messages sent. So if you have

0:28:43.840 --> 0:28:46.560
<v Speaker 1>hundreds of messages sent and you're working under the assumption

0:28:46.640 --> 0:28:51.440
<v Speaker 1>that everyone has is using the same basic layout for

0:28:51.480 --> 0:28:54.840
<v Speaker 1>their Enigma machine, you start looking for patterns, and if

0:28:54.840 --> 0:28:57.400
<v Speaker 1>you find enough patterns, you might say, oh, all right, well,

0:28:57.480 --> 0:28:59.960
<v Speaker 1>look these these two messages here start with the same

0:29:01.480 --> 0:29:05.160
<v Speaker 1>essentially the same uh patterns, So that may suggest that

0:29:05.200 --> 0:29:08.320
<v Speaker 1>they're both starting with the same word. So let's start

0:29:08.360 --> 0:29:10.440
<v Speaker 1>working back. And it may even be when I'm talking

0:29:10.480 --> 0:29:13.080
<v Speaker 1>about patterns, I'm not even necessarily talking about the same

0:29:13.160 --> 0:29:17.920
<v Speaker 1>ciphered letters, because again if if if German A has

0:29:18.120 --> 0:29:22.400
<v Speaker 1>set the rotors to a certain alphabet setting to start off,

0:29:22.400 --> 0:29:25.719
<v Speaker 1>and German B has chosen a totally different set, Uh,

0:29:25.760 --> 0:29:29.959
<v Speaker 1>you're looking again at the actual pattern of of letter occurrence,

0:29:30.080 --> 0:29:33.080
<v Speaker 1>not which letters they are. You know, it also helps

0:29:33.120 --> 0:29:36.240
<v Speaker 1>to have a thorough knowledge of German, much more than

0:29:36.400 --> 0:29:39.960
<v Speaker 1>my one year and Kyle in high school enabled me

0:29:40.040 --> 0:29:43.160
<v Speaker 1>to UH fake my way through that greeting. UM. No.

0:29:43.320 --> 0:29:47.520
<v Speaker 1>They also look at contact analysis, which is basically how

0:29:47.680 --> 0:29:52.040
<v Speaker 1>frequently one letter will be next to another in a language.

0:29:52.360 --> 0:29:56.000
<v Speaker 1>So if you know UH German, then you're able to

0:29:56.040 --> 0:30:01.400
<v Speaker 1>know certain things about the way uh certain words are

0:30:01.440 --> 0:30:05.120
<v Speaker 1>more common than other certain letter formations. So I think

0:30:05.200 --> 0:30:09.040
<v Speaker 1>in in a lot of ways, UM, until the Allies

0:30:09.080 --> 0:30:13.080
<v Speaker 1>were able to get ahold of UH, you know more

0:30:13.120 --> 0:30:19.680
<v Speaker 1>thorough um code cracking materials. I think the traditional code

0:30:19.680 --> 0:30:23.959
<v Speaker 1>breaking tools like cribs and UH and contact analysis were

0:30:23.960 --> 0:30:27.920
<v Speaker 1>probably very helpful to them. UM. But what's really funny

0:30:27.960 --> 0:30:31.160
<v Speaker 1>to me is in in doing my research, I was

0:30:31.200 --> 0:30:35.520
<v Speaker 1>reading about John Harribl Uh, the Cambridge mathematician. He was

0:30:35.520 --> 0:30:39.360
<v Speaker 1>twenty one years old, UM, and he was looking to

0:30:39.600 --> 0:30:42.720
<v Speaker 1>UH to get into the cipher known as red um

0:30:42.760 --> 0:30:45.160
<v Speaker 1>that the Germans had used. And what's funny to me

0:30:45.320 --> 0:30:49.560
<v Speaker 1>is he actually stumbled upon something that we look at

0:30:49.800 --> 0:30:52.400
<v Speaker 1>on that we've actually sort of talked about on the show.

0:30:52.480 --> 0:30:55.680
<v Speaker 1>We've talked about passwords UM. He figured that at some

0:30:55.800 --> 0:31:00.120
<v Speaker 1>point UH they were gonna get lazy and stop changing

0:31:00.440 --> 0:31:03.560
<v Speaker 1>things and stop changing the keys that people would use

0:31:03.640 --> 0:31:07.920
<v Speaker 1>for their uh UM, the codes that they would use

0:31:07.920 --> 0:31:09.480
<v Speaker 1>at the beginning of the message to tell you which

0:31:09.560 --> 0:31:13.680
<v Speaker 1>rotor settings. Basically, people would start using UH the name

0:31:13.760 --> 0:31:18.840
<v Speaker 1>of their dog or their girlfriend to start encoding the messages,

0:31:18.840 --> 0:31:21.000
<v Speaker 1>and they were going to start leaving it there. Once

0:31:21.080 --> 0:31:22.920
<v Speaker 1>the first message of the day was sent. They're not

0:31:22.960 --> 0:31:25.920
<v Speaker 1>going to change it for every message anymore because they're

0:31:25.960 --> 0:31:28.560
<v Speaker 1>in a hurry or they're lazy, and they're not going

0:31:28.600 --> 0:31:32.400
<v Speaker 1>to change it. And at first UM apparently this didn't

0:31:33.040 --> 0:31:35.320
<v Speaker 1>They were abiding by the rules, they were doing things

0:31:35.320 --> 0:31:37.160
<v Speaker 1>the way they were supposed to. But as soon as

0:31:37.160 --> 0:31:42.440
<v Speaker 1>people became complacent and started leaving that setting throughout the day,

0:31:42.600 --> 0:31:45.160
<v Speaker 1>once they had cracked the first message of the day,

0:31:45.240 --> 0:31:47.200
<v Speaker 1>they were set and they were able to they could

0:31:47.800 --> 0:31:50.360
<v Speaker 1>identify this and they basically asked for all the messages

0:31:50.400 --> 0:31:54.000
<v Speaker 1>sent across all of the machines for the first one

0:31:54.000 --> 0:31:56.760
<v Speaker 1>of the day. And once they were able to do that, um,

0:31:56.960 --> 0:32:01.400
<v Speaker 1>they were able to crack read and basically identify what

0:32:01.440 --> 0:32:04.280
<v Speaker 1>was going on for the entire days communications. And that

0:32:04.360 --> 0:32:10.360
<v Speaker 1>happened around or so um, which was fairly early four.

0:32:10.400 --> 0:32:12.280
<v Speaker 1>I mean it was before the Americans got involved, but

0:32:12.400 --> 0:32:14.440
<v Speaker 1>of course Europe had been embroiled in war for a

0:32:14.440 --> 0:32:17.960
<v Speaker 1>while at that point. Um. But that's a pretty that's

0:32:17.960 --> 0:32:19.680
<v Speaker 1>one of those things where we tell you not to

0:32:19.720 --> 0:32:24.280
<v Speaker 1>be careless with your passwords, and you know, even back then,

0:32:25.280 --> 0:32:28.840
<v Speaker 1>it's just sort of ironic to me. Yeah, it's interesting. Um.

0:32:29.080 --> 0:32:33.600
<v Speaker 1>The you know, it's you're talking about a device that

0:32:33.680 --> 0:32:36.640
<v Speaker 1>once you start to encode the message, that's a very

0:32:36.680 --> 0:32:41.760
<v Speaker 1>time consuming process, you know, setting your device the proper

0:32:41.800 --> 0:32:44.720
<v Speaker 1>way and then starting to actually encode it and to

0:32:44.840 --> 0:32:48.400
<v Speaker 1>confirm that you know, you that the letters you are

0:32:48.400 --> 0:32:51.920
<v Speaker 1>writing down are indeed the correct ones based upon that configuration.

0:32:53.000 --> 0:32:55.320
<v Speaker 1>It's the longer the messages, the longer is going to

0:32:55.320 --> 0:32:58.560
<v Speaker 1>take to encode. And that means that the greater the

0:32:58.560 --> 0:33:00.760
<v Speaker 1>span of time between when the message was written and

0:33:00.840 --> 0:33:04.560
<v Speaker 1>when the message is received becomes and that that all

0:33:04.600 --> 0:33:06.920
<v Speaker 1>of that I think leads to that sort of lazy

0:33:07.000 --> 0:33:10.400
<v Speaker 1>behavior because you don't want to uh uh, you know,

0:33:10.520 --> 0:33:14.520
<v Speaker 1>suffer problems because you were too slow. So yeah, I

0:33:14.560 --> 0:33:17.080
<v Speaker 1>mean there were a lot of different reasons why this happened,

0:33:17.160 --> 0:33:18.360
<v Speaker 1>and I think a part of it was just because

0:33:18.360 --> 0:33:19.920
<v Speaker 1>it's such a huge pain in the butt. But that's

0:33:19.920 --> 0:33:22.080
<v Speaker 1>the point. I mean, if cryptography wasn't a pain in

0:33:22.120 --> 0:33:26.800
<v Speaker 1>the butt, then there will be no secrecy there. You

0:33:26.880 --> 0:33:30.160
<v Speaker 1>have to make it difficult enough so that the message

0:33:30.160 --> 0:33:34.680
<v Speaker 1>remains safe. So once we started getting tired of going

0:33:34.720 --> 0:33:38.800
<v Speaker 1>to those pains, there's no more safety, yea yea um.

0:33:38.840 --> 0:33:41.480
<v Speaker 1>But yeah, we we talked about Alan turing Um and

0:33:41.520 --> 0:33:46.440
<v Speaker 1>he invented a machine known as the the van Barismus Um,

0:33:46.720 --> 0:33:49.920
<v Speaker 1>which I don't know why I called it that, um,

0:33:49.960 --> 0:33:53.320
<v Speaker 1>but yeah, basically it was able to identify patterns in

0:33:53.520 --> 0:33:57.080
<v Speaker 1>the text messages and that just made it faster for

0:33:57.120 --> 0:33:59.320
<v Speaker 1>the allies to be able to track things down. Yeah.

0:33:59.760 --> 0:34:05.120
<v Speaker 1>I think his machine was capable of decoding a Enigma

0:34:05.360 --> 0:34:09.000
<v Speaker 1>message within something like fifteen hours, which sounds like it's

0:34:09.040 --> 0:34:11.200
<v Speaker 1>a long time, but when you're talking about eliminating all

0:34:11.239 --> 0:34:14.400
<v Speaker 1>those possibilities. It's pretty incredible, especially you're talking. You know,

0:34:15.280 --> 0:34:19.520
<v Speaker 1>this is this, these are the developments that led into computers,

0:34:20.080 --> 0:34:22.960
<v Speaker 1>and that this predates computers, but these devices sort of

0:34:23.000 --> 0:34:26.600
<v Speaker 1>became the precursor to the computer. And you know, it's

0:34:26.640 --> 0:34:28.719
<v Speaker 1>one of the reasons why we talked about touring being

0:34:29.200 --> 0:34:34.560
<v Speaker 1>a father of of computing and computer science, because it's

0:34:34.600 --> 0:34:37.440
<v Speaker 1>this sort of stuff that that led to computers in

0:34:37.480 --> 0:34:40.759
<v Speaker 1>the first place. Yeah, they I think Also one of

0:34:40.800 --> 0:34:44.200
<v Speaker 1>the misconceptions is that that the machine known as Colossus

0:34:45.360 --> 0:34:48.920
<v Speaker 1>was used in breaking the Enigma ciphers, and that actually

0:34:49.000 --> 0:34:52.200
<v Speaker 1>is not true. UM. Colossus is frequently referred to as

0:34:52.239 --> 0:34:56.880
<v Speaker 1>one of the first electronic computers UM, but it was

0:34:56.920 --> 0:35:00.920
<v Speaker 1>actually used to break the Lorenz cipher system, which is

0:35:00.960 --> 0:35:04.920
<v Speaker 1>another a different machine UM that was used by the

0:35:04.960 --> 0:35:08.520
<v Speaker 1>German Army High Command UM and Lorenz is the name

0:35:08.520 --> 0:35:12.280
<v Speaker 1>of a company and they basically UH had been working

0:35:12.280 --> 0:35:16.040
<v Speaker 1>on a completely different type of machine UM that did

0:35:16.080 --> 0:35:19.800
<v Speaker 1>not use the Enigma codes. But yeah, they used UM

0:35:19.840 --> 0:35:25.360
<v Speaker 1>the British used Colossus to UH figure out the Lorenz system. UM.

0:35:25.440 --> 0:35:28.080
<v Speaker 1>But yeah, that that actually is the machine that we

0:35:28.239 --> 0:35:32.719
<v Speaker 1>talked about back in our UM chip Tunes podcast. When

0:35:32.920 --> 0:35:36.080
<v Speaker 1>pixel Hate was had been allowed into the Bletchley Park

0:35:36.280 --> 0:35:39.879
<v Speaker 1>Museum to record the mechanical relays. And of course, uh

0:35:39.920 --> 0:35:44.320
<v Speaker 1>today's computers uh as in terms of processing power could

0:35:44.520 --> 0:35:49.239
<v Speaker 1>do the work that these machines did in scant a

0:35:49.320 --> 0:35:52.320
<v Speaker 1>fraction of what the time needed to do that then,

0:35:52.920 --> 0:35:57.000
<v Speaker 1>but and can more thoroughly encrypt messages. I mean, even

0:35:57.160 --> 0:35:59.920
<v Speaker 1>the freeware tools that you can get now to ENCRYPTI

0:36:00.040 --> 0:36:03.239
<v Speaker 1>Neil are more thorough than than these machines were. But

0:36:03.800 --> 0:36:07.479
<v Speaker 1>it's still very fascinating stuff. Yeah, yeah, and um yeah,

0:36:07.480 --> 0:36:10.040
<v Speaker 1>it was really I would love to actually get a

0:36:10.120 --> 0:36:12.400
<v Speaker 1>chance to to see one of these devices, and there

0:36:12.400 --> 0:36:14.239
<v Speaker 1>aren't quite a few of them, many many in the

0:36:14.440 --> 0:36:17.960
<v Speaker 1>museums and things like that. Um, but I've never actually,

0:36:18.160 --> 0:36:19.839
<v Speaker 1>I mean I've seen plenty of pictures, but I've never

0:36:19.880 --> 0:36:24.560
<v Speaker 1>actually seen one of these devices. Uh you know, kind

0:36:24.560 --> 0:36:27.440
<v Speaker 1>of curious one to play with one. And that wraps

0:36:27.520 --> 0:36:29.719
<v Speaker 1>up another classic episode. Hey you know that thing I

0:36:29.719 --> 0:36:33.160
<v Speaker 1>said about a secret code in the episode, I lied,

0:36:33.480 --> 0:36:36.680
<v Speaker 1>there's no secret code. I I just wanted to seem

0:36:36.719 --> 0:36:41.160
<v Speaker 1>cool for just a second. It's all I have. But

0:36:41.200 --> 0:36:43.640
<v Speaker 1>if you guys have something, you know, like an idea

0:36:43.719 --> 0:36:46.440
<v Speaker 1>for a future episode of tech Stuff, something that in

0:36:46.480 --> 0:36:49.600
<v Speaker 1>the far future can become a classic episode of tech Stuff.

0:36:50.040 --> 0:36:52.880
<v Speaker 1>Let me know. Send me an email. My address is

0:36:52.960 --> 0:36:55.759
<v Speaker 1>tech stuff at how stuff works dot com, or draw

0:36:55.800 --> 0:36:57.600
<v Speaker 1>me a line on Facebook or Twitter. The handle for

0:36:57.719 --> 0:37:00.760
<v Speaker 1>both of those is text stuff HS double you head

0:37:00.760 --> 0:37:04.200
<v Speaker 1>on over to our merchandise store over at t public

0:37:04.280 --> 0:37:09.439
<v Speaker 1>dot com slash tech Stuff. There you can buy tote bags, stickers,

0:37:09.560 --> 0:37:12.080
<v Speaker 1>t shirts, all sorts of cool stuff with tech Stuff

0:37:12.120 --> 0:37:15.640
<v Speaker 1>logos and and more on it. And every single purchase

0:37:15.680 --> 0:37:18.200
<v Speaker 1>you make goes to help the show, so we appreciate it.

0:37:18.520 --> 0:37:20.600
<v Speaker 1>And don't forget to follow us on Instagram and I'll

0:37:20.600 --> 0:37:29.680
<v Speaker 1>talk to you again really soon for more on this

0:37:29.840 --> 0:37:32.319
<v Speaker 1>and thousands of other topics. Is that how stuff works

0:37:32.360 --> 0:37:42.640
<v Speaker 1>dot com.