WEBVTT

00:00.000 --> 00:03.280
First of all, what's the name of this talk?

00:06.180 --> 00:07.580
Anyone?

00:07.620 --> 00:09.320
You have to shout.

00:17.140 --> 00:19.500
How about that?

00:21.540 --> 00:27.240
An example of something called a Caesar Cipher, a simple substitution cipher.

00:27.240 --> 00:34.400
In our tech industry, we sometimes call it ROT, Rotation Cipher.

00:35.240 --> 00:36.560
My name is Jeff Mann.

00:36.560 --> 00:44.860
I am a former NSA cryptologist, consultant advisor, industry old-timer.

00:45.140 --> 00:49.440
And feel free to reach out to me anytime for questions, mentoring.

00:50.780 --> 00:53.720
Take pictures, send them to me.

00:54.760 --> 00:58.160
I spent the early part of my career, as I said, at NSA.

00:58.160 --> 01:00.520
I've been out for almost 30 years now.

01:01.740 --> 01:05.140
20 years ago, I got into doing something called PCI.

01:06.160 --> 01:09.240
Has PCI ever been said from stage at DEF CON before?

01:09.240 --> 01:10.100
I don't know.

01:14.590 --> 01:23.370
Most people in this industry know me because I was one of the architects, one of the founders of what came to be known as the first NSA red team.

01:23.370 --> 01:30.030
So I was doing pen testing back in the early 90s and did it up until about the mid-90s for NSA.

01:30.030 --> 01:38.070
But I was also a cryptanalyst at NSA, which is why I'm here talking, representing the crypto and privacy village, by the way.

01:40.790 --> 01:46.250
I was working as a cryptologist designing systems back in the late 80s.

01:46.250 --> 01:52.670
One of the things I did because computers were becoming a thing, the digital age was becoming a thing.

01:52.670 --> 02:06.910
I had a client that asked if they could do a paper manual process on a PC and was able to produce what I think was the first software-based NSA produced, which only did half of it.

02:06.910 --> 02:17.890
The spy in the field was still using the paper, but the case handler was using a PC and got the one-time pad key put on floppy disk.

02:17.890 --> 02:20.490
I also had another customer, U.S.

02:20.490 --> 02:28.230
Special Forces, that I designed a cipher wheel for that would help them with their encryption and decryption in the field of one-time pads.

02:31.340 --> 02:38.520
But this is just a little bit of cryptographic history to explain where we came from in cryptography.

02:38.520 --> 02:43.380
You were just hearing a talk talking about encryption that works in the digital age.

02:44.140 --> 02:48.880
But basically, people have been trying to keep secrets for thousands of years.

02:48.880 --> 03:06.800
And in the early days, it was primarily keeping secrets and communicating messages from one end to another, very often used by the military, trying to get commands and directions to troops on the battlefield from the command headquarters and the generals and things like that.

03:07.460 --> 03:17.380
There's basically, historically, two different ways of doing that, two different ways of protecting messages, and that's called codes and ciphers.

03:18.380 --> 03:44.380
The difference between the two, very briefly, the way I learned it many years ago, is code is something you do to words and phrases or thoughts and ideas to try to shrink it down to something that's briefer to transmit and to communicate, whereas a cipher is something you're doing to scramble and create what used to be called a cryptogram,

03:44.380 --> 03:49.620
but it's a one-character, one-letter, one-number relationship.

03:50.240 --> 03:52.280
There's two ways of doing that.

03:52.280 --> 03:57.520
One way is to do, like the title of this talk, a substitution.

03:57.520 --> 04:10.900
You're replacing the real letters, the real characters, for something obscure and different in hopes of confusing people, which seemed to work since a lot of people, not a lot of people, seemed to know what the name of the talk was.

04:10.900 --> 04:27.260
The other thing you can do is you simply scramble the letters, same letters, just put them in a different order in some way where the intended recipient knows how to put it back together.

04:27.260 --> 04:29.840
I can give you a real brief example.

04:30.700 --> 04:34.520
This is an example of a transposition.

04:34.520 --> 04:37.100
Anybody know what my shirt says?

04:39.860 --> 04:41.100
Close.

04:41.600 --> 04:43.160
Too many secrets.

04:43.260 --> 04:44.460
Too many secrets.

04:44.460 --> 04:45.600
Very good.

04:47.800 --> 04:49.740
In terms of U.S.

04:49.740 --> 05:02.780
history, you know, back in the American Revolution, there was codes and ciphers used, and an example of a code would be one if by land, two if by sea.

05:03.500 --> 05:10.500
Big, long phrases reduced down to just a light or two lights in a church bell tower.

05:11.280 --> 05:16.220
There was also codes being used by the armies.

05:16.220 --> 05:21.480
They had entire code books written up where numbers would represent all sorts of words.

05:21.480 --> 05:31.340
And just as an example, there was Agent 711, which was actually the code for George Washington, General of the Army.

05:34.420 --> 05:42.240
They also were using ciphers, but in this particular instance, they weren't using letters to replace letters.

05:42.240 --> 05:46.180
They were using symbols, but it was still a Caesar cipher.

05:46.180 --> 05:48.960
It was still a simple substitution system.

05:48.960 --> 05:53.840
And of course, Caesar cipher, that was actually used by the Confederate Army in the Civil War.

05:53.840 --> 06:02.240
They had a cipher wheel themselves, which was part of the inspiration for the cipher wheel that I designed many years later.

06:04.800 --> 06:09.480
Freemasons, they have loved to use ciphers for many years.

06:09.480 --> 06:16.580
The particular cipher they use, these are examples of tombstones of dead members of the Freemasons.

06:16.580 --> 06:29.780
And they often would leave messages, encrypted messages on their tombstones using something called a pigpen cipher, where instead of letters, they would write letters into like tic-tac-toe squares.

06:29.980 --> 06:36.480
And instead of the letters, they would simply use the shape of the box or the cell that the letter fell in.

06:36.480 --> 06:38.340
This is kind of what it looks like.

06:41.050 --> 06:52.710
If you've ever seen the movie National Treasure, they have something that they call the Ottendorf cipher, where there's a whole bunch of numbers written on the back of the Declaration of Independence in invisible ink.

06:52.710 --> 07:04.310
And that translates to, if you know the right book, the particular page of a book, the particular line on the page, and the particular letter across the line.

07:04.970 --> 07:07.030
That really kind of existed.

07:07.030 --> 07:10.710
That is something that was done in the revolution.

07:10.710 --> 07:12.630
It was called the Arnold cipher.

07:15.250 --> 07:21.870
Examples of transpositions, and this goes back, I think it's to the ancient Egyptians.

07:21.870 --> 07:30.450
They used to have a stick of a certain size and wrap a leather strap around it, write their message, and then unwind it.

07:30.450 --> 07:34.750
And so it was just a bunch of random letters written out on this big long strip.

07:34.750 --> 07:36.630
They would send it to the recipient.

07:36.630 --> 07:42.410
He would have to have the same size stick to wrap it back together again and put it back in order.

07:42.410 --> 07:53.070
Also something that was used that I learned about in my early days was something that's sort of like a crossword puzzle, but you have a sort of a stencil, a square with certain holes cut out of it.

07:53.070 --> 08:00.070
You'd write your message in one letter at a time, rotate it, keep going with your message, rotate it, and so on and so forth.

08:00.070 --> 08:08.270
When you pull it up, you've got a square filled with letters in a random order that hopefully nobody could figure out how to put it back together.

08:10.410 --> 08:21.810
Another example of something that I learned back in my days is something called a substitution cipher, a play fair, where you would put the letters of the alphabet in a 5x5 square.

08:22.450 --> 08:25.630
Of course, we had 26 letters in the alphabet, so we had to double up.

08:25.630 --> 08:29.110
Very commonly, it was JK, but it could have been anything else.

08:29.750 --> 08:37.370
The first ones were just simply A to Z, but to add a level of complexity, very often you would start using a keyword.

08:37.370 --> 08:39.450
Did I do that?

08:41.920 --> 08:42.760
Hey!

08:47.170 --> 08:48.590
Who is this guy?

08:50.150 --> 08:59.690
To add complexity, you'd start with a keyword and write the letters of that word out in the square, and then you've used a letter once, you'd fill in the rest of the square with the alphabet.

08:59.970 --> 09:15.630
And then the way that you would do the encryption and the decryption was basically create a square with the letter that you wanted to write, and then make a square and find out what the cipher is, if that makes sense to you by looking at it.

09:17.470 --> 09:27.350
World War II, Navajo natives were enlisted to be radio operators and code talkers.

09:27.510 --> 09:30.570
The Japanese, the enemy, never broke the code.

09:30.570 --> 09:42.070
They were not only just speaking in their native tongue, which apparently the Japanese had a hard time understanding, but they were using words to mean other things.

09:42.070 --> 09:47.550
You can see some examples there, like a battleship was a whale, things like that.

09:47.550 --> 09:51.690
It seems intuitive now that that would have made sense, but it worked.

09:53.010 --> 09:59.950
Machine encryption started becoming popular in the 30s, most famously in World War II.

09:59.950 --> 10:02.150
There was the German Enigma machine.

10:02.890 --> 10:21.590
I went to work for the NSA in 1986, was learning about things like this and sort of basic courses that we took to get introduced to the field, mostly to try to bide our time while our clearances, our background investigations were being completed.

10:21.590 --> 10:31.730
I learned at that time, in 1986, that we weren't telling people that the Enigma machine had been broken back in World War II.

10:31.730 --> 10:33.350
That was still a secret.

10:33.350 --> 10:45.590
It wasn't revealed to the public that the Enigma machine had been broken in World War II, prior to World War II, until I think 1987 or 88.

10:45.590 --> 10:51.330
The reason being, there was still somebody out there that was using it.

10:52.050 --> 11:01.330
It was first broken in 1938 by Polish cryptographers and used for 50 years after that.

11:01.370 --> 11:04.050
And we kept a secret that we knew how to break it.

11:04.050 --> 11:09.950
I don't think there's anything else that we've ever done in terms of secrecy that's held up that long.

11:10.690 --> 11:14.350
We being the US, we being NSA types.

11:15.090 --> 11:23.750
Some of the radios and equipment that were being used when I was there at NSA back in the 80s and 90s, a lot of these were Vietnam era.

11:24.050 --> 11:28.210
But again, it was about communication security.

11:28.210 --> 11:34.390
When I first went to work for the defensive side of operations, it was called ComSec, communication security.

11:34.410 --> 11:39.930
Shortly after that, it was renamed to information security, so we called it InfoSec.

11:42.590 --> 11:56.570
But some of these radios, initially, they would take an analog signal and they would apply an encryption algorithm, usually built into a little black box, because that's what NSA built in those days, with key being applied to it.

11:56.570 --> 12:02.430
So, there was encryption involved and then a receiver on the other end that could reverse the process.

12:03.030 --> 12:15.350
Later on, there was radios and devices that would convert the analog signal to digital and then do the encryption of the digits, send it, and then do the whole process in reverse.

12:16.930 --> 12:19.290
These are just different examples.

12:20.310 --> 12:31.430
One other way to try to defeat the enemy or adversary from intercepting the signal was not only encrypting it, but trying to hide it across frequencies.

12:31.430 --> 12:41.450
So, send a little bit here, then using some sort of random algorithm that was predictable on both sides, send more and more of the signal just on different frequencies.

12:41.850 --> 12:52.390
Interestingly enough, that concept was invented by Hedy Lamarr, a movie actress from the 1920s.

12:53.670 --> 12:55.590
That's just a shout out to women.

12:55.590 --> 12:59.750
We need more women in industry, because they're smarter than us men, very often.

13:01.670 --> 13:10.410
As the systems advanced, keys needed to be more complex and longer, and keys needed to be changed frequently.

13:10.550 --> 13:17.570
And when you were putting it into a little black box, you needed to have key machines that inject the keys.

13:17.570 --> 13:21.290
So, these are some examples of key injectors.

13:22.450 --> 13:29.230
This was something that was trying to be popular, again, when I was at NSA in the late 80s.

13:29.230 --> 13:39.590
It was sort of trying to get modern, so they had a little thing called a KL-43 that had a keyboard and had a little LCD screen that I think held, you could see, 32 digits.

13:39.590 --> 13:44.890
And the idea was you type in a message, and it would immediately be encrypted on the screen.

13:45.030 --> 13:50.470
Usually, it would be output to... gosh, we didn't have thumb drives back then.

13:50.530 --> 13:55.930
It would either be transmitted automatically or be printed out on paper for distribution.

13:55.930 --> 14:10.810
But the idea was this was high-tech, self-contained encryption system, rather than a little black box inside of a radio or a phone or a little black box that the radio or phone was attached to.

14:12.870 --> 14:24.070
Stu-3 telephone was what we were using at the time, so it was one of the first times that NSA put out, for bid to a contractor, an idea of...

14:24.610 --> 14:33.170
NSA came up with the specs, but different contractors bid on the idea of how to make a secure phone.

14:33.710 --> 14:41.490
These secure phones were starting to use public-key cryptography, and the keys were seeded with these things that looked like keys.

14:41.490 --> 14:46.230
But you had to stick it in, turn it, have it read it, and set it up.

14:46.350 --> 14:51.430
And the first ones were half-duplex, which means kind of like a walkie-talkie.

14:51.430 --> 14:57.490
It's pushed to talk, one-way communication, then you let go, and then the other person would talk back.

14:57.490 --> 15:01.530
On a telephone, that was often very difficult.

15:01.850 --> 15:13.530
And because of the encryption, when you used it, you kind of sounded... the people on the other end kind of sounded like Donald Duck, but it was modern technology at the time.

15:13.690 --> 15:19.410
And eventually, they were able to put it into smartphones, cell phones, so it became more portable.

15:21.430 --> 15:25.390
Very briefly, now we're in the age of digital cryptography.

15:25.390 --> 15:26.850
Things have evolved.

15:28.430 --> 15:33.450
We all use cryptography every day in our lives on the Internet.

15:33.450 --> 15:39.090
And there's probably a lot of you guys know this, but there's basically two forms of encryption.

15:39.210 --> 15:45.050
There's symmetric encryption, where it's the same key used on either end of the communication.

15:45.110 --> 15:49.330
And the communication these days are websites and so on and so forth.

15:50.070 --> 15:58.730
And then the other type, public key cryptography, is the idea of key pairs, where it's a one-way... there's a public and a private key.

15:58.870 --> 16:09.370
I hold my private key and give you my public key, and I give all of you my public key, because you can encrypt a message that I can only decrypt with my private key.

16:09.410 --> 16:18.670
But for me to talk back to you, I've got to get your public key, and I can then write a message and send it to you, and you're the only one that can decrypt it.

16:19.450 --> 16:21.190
Very simplified view.

16:21.350 --> 16:26.850
There is a third form up in Canada, and it's called symmetric A encryption.

16:27.710 --> 16:28.790
That was a joke.

16:30.070 --> 16:36.210
Whitfield Diffie, he was affiliated with NSA off and on, Diffie-Hellman algorithm.

16:36.210 --> 16:39.130
I actually took a course with him early on at NSA.

16:39.130 --> 16:41.930
That's why I kind of threw his picture up there.

16:41.930 --> 16:45.710
And then you got the modern age and all the fun stuff coming, like with quantum.

16:45.710 --> 16:48.650
I don't want to say that much about quantum cryptography.

16:49.210 --> 16:58.350
The other big thing that's popular, I just saw it earlier in the week, I was down at that other conference that we don't mention around here, but the idea of homomorphic encryption.

16:58.350 --> 17:09.730
Which really rubs me the wrong way, because I spent my entire career and learned about all the different ways that we protect data, protect data, encrypt data, with the idea that we're keeping things a secret.

17:09.730 --> 17:17.350
But people are coming up with ways of being able to encrypt data, but still get meaningful information out of it.

17:17.350 --> 17:19.910
I don't get my head wrapped around that very well.

17:19.910 --> 17:23.170
I kind of think that, okay, it's neat technology.

17:23.170 --> 17:24.630
It's a neat idea.

17:24.630 --> 17:26.450
Just don't call it encryption.

17:26.550 --> 17:30.310
But I'm losing that battle, as many other battles.

17:31.170 --> 17:39.910
Just in terms of why I kind of put this talk together, several months ago, I do a podcast called Paul's Security Weekly.

17:39.910 --> 17:50.470
And gosh, it was probably a year ago, we were talking to somebody, and somebody in the chat, when we used to broadcast live, was saying something about encryption and encoding.

17:50.470 --> 17:52.330
And I'm like, you know, those are two different things.

17:52.330 --> 17:54.070
And he's like, well, no, they're interchangeable.

17:54.070 --> 18:04.930
So I like went out to Google, the meaning of the words, and I went, I found on Wikipedia, the definition here, and I'm reading through it.

18:04.930 --> 18:08.390
And I'm gonna have to stick to my laptop here for a minute.

18:09.230 --> 18:14.690
It says, well, you can read it, but it uses encryption saying it's the process of encoding.

18:14.690 --> 18:21.570
And later on, it talks about ciphertext, plaintext.

18:21.570 --> 18:27.050
But this has always been kind of a beef with me, because there's codes and there's ciphers.

18:27.050 --> 18:32.050
And encoding is something you do with code, and then ciphering is something you do with ciphers.

18:32.050 --> 18:33.750
They're two different things.

18:33.750 --> 18:39.790
But they're very often used interchangeably, which bothers me, because I'm a purist.

18:39.790 --> 18:52.330
Another thing I found was another definition, and they talked about secret codes, and there's talking about coding and decoding, and that's how you get ciphers.

18:52.570 --> 18:54.730
That's not technically accurate.

18:55.930 --> 18:58.390
If you remember, I shared this earlier.

19:00.090 --> 19:03.770
This is sort of the summary of what codes and ciphers are.

19:03.770 --> 19:10.670
And I kind of wanted to set out and try to give some information about why I say these words are wrong.

19:10.670 --> 19:18.690
And the CFP that I submitted, they gave me feedback that this was sounding subjective and opinion-based, but it's actually not.

19:19.290 --> 19:22.270
I have sort of the Bibles of cryptography.

19:22.270 --> 19:40.850
They were just declassified at some point, and I was allowed to keep my copies of Military Cryptoanalytics Volumes 1 and 2, or Part 1 and 2, written by gentlemen that were very highly respected cryptographers before World War II, sort of became the pioneers in the formation of NSA.

19:42.150 --> 19:43.890
Lambros Kalimahos.

19:44.070 --> 19:54.170
And if you guys have gone to The Village and you've heard about the Goldbug Award, there's also a society at NSA of cryptographers called the Dundee Society.

19:54.170 --> 19:56.630
You can see the explanation of it there.

19:56.630 --> 19:59.630
But then also the other author was William Friedman.

19:59.750 --> 20:00.950
Thank you.

20:00.950 --> 20:06.370
Between he and his wife, Elizabeth Friedman, they were sort of responsible.

20:06.370 --> 20:10.750
They're sort of considered the godfather, the godmother of cryptography.

20:10.750 --> 20:12.030
So these are the authors.

20:12.030 --> 20:15.790
These guys were the ones breaking the codes and ciphers back in World War II.

20:16.330 --> 20:26.210
So very quickly, the definitions that they wrote that are written down are such, and hopefully you can see it on the screen there.

20:26.210 --> 20:31.830
I just want to highlight a couple things here where, again, it's in writing.

20:31.870 --> 20:35.230
Ciphers have to do with individual letters.

20:35.230 --> 20:36.670
I say characters.

20:36.830 --> 20:40.030
And then the codes have to do with words and phrases.

20:42.230 --> 20:44.670
Oh, this is something I picked up.

20:44.670 --> 20:49.250
I was preparing for this this morning, and I thought this was kind of interesting.

20:49.250 --> 20:50.970
I hadn't noticed it before.

20:50.970 --> 21:02.650
But there's a statement there that simply says you do these things, you encrypt things and create cryptograms for one of two reasons, secrecy and economy or brevity.

21:02.650 --> 21:19.350
And I thought that was interesting because the way I was learning code and cipher, especially when we're starting to get into computers and Internet technology, encoding was always considered a way to shrink down, compress the data so it could be sent quicker and more easily.

21:19.350 --> 21:22.950
And we never presumed that it was secure.

21:22.950 --> 21:25.640
That's what the encryption was for.

21:26.030 --> 21:35.790
So brevity or speed, coding, secrecy, protection of what you're trying to transmit, cipher.

21:37.070 --> 21:43.730
And then finally, just a brief mention here, again, where they talk about the introduction of key.

21:43.730 --> 21:47.530
And we know key now most commonly as certificates.

21:47.530 --> 21:58.370
The key was really any method that was used and agreed upon by both sides as how you were going to do the encryption, the protection.

21:58.570 --> 22:09.330
Nowadays, it's mostly just throwing huge random streams that hopefully nobody can figure out and giving the random streams to both ends to go through a very complex mathematical algorithm.

22:09.330 --> 22:11.110
That's where we are today.

22:11.110 --> 22:25.890
But just to summarize in terms of why I think words have meanings and why I think we need to understand the meanings of the words, even in our modern digital context, is going back to the fundamentals of where they came from, codes and ciphers.

22:25.890 --> 22:36.790
And I would suggest to you that, again, think about codes or encoding as just a way to compress and increase speed, not necessarily security.

22:36.790 --> 22:41.430
That's where the cipher and the encryption and the big, long key streams come in.

22:44.110 --> 22:50.070
Real briefly, it's all about protection of data, information-keeping secrets.

22:50.070 --> 22:54.170
You probably know about the idea of confidential integrity and availability.

22:54.290 --> 22:58.750
And then digital age introduced things like non-repudiation.

22:59.170 --> 23:04.630
We spent most of our time in the digital age focusing on the confidentiality.

23:04.630 --> 23:10.730
Nowadays, we're trying to figure out how to do the availability because of all the ransomware attacks that are out there.

23:10.910 --> 23:20.610
One last thing, that cipher wheel I mentioned, it was put on display at the National Cryptologic Museum in Fort Meade, Maryland back in April.

23:20.850 --> 23:25.710
And it's on display through September if you make it to Maryland.

23:25.850 --> 23:27.450
It's in a display case.

23:27.450 --> 23:29.290
There I am looking at it.

23:29.290 --> 23:31.090
And there's the display.

23:31.090 --> 23:36.430
You can probably not read it there, but it says, Jeff Mann reinvents the wheel.

23:37.050 --> 23:38.690
So thank you very much.

