start	end	text
0	3280	First of all, what's the name of this talk?
6180	9320	Anyone? You have to shout.
17140	19500	How about that?
21540	27240	An example of something called a Caesar Cipher, a simple substitution cipher.
27240	34400	In our tech industry, we sometimes call it ROT, Rotation Cipher.
35240	44860	My name is Jeff Mann. I am a former NSA cryptologist, consultant advisor, industry old-timer.
45140	49440	And feel free to reach out to me anytime for questions, mentoring.
50780	53720	Take pictures, send them to me.
54760	58160	I spent the early part of my career, as I said, at NSA.
58160	60520	I've been out for almost 30 years now.
61740	65140	20 years ago, I got into doing something called PCI.
66160	70100	Has PCI ever been said from stage at DEF CON before? I don't know.
74590	79110	Most people in this industry know me because I was one of the architects,
79110	83370	one of the founders of what came to be known as the first NSA red team.
83370	90030	So I was doing pen testing back in the early 90s and did it up until about the mid-90s for NSA.
90030	98070	But I was also a cryptanalyst at NSA, which is why I'm here talking, representing the crypto and privacy village, by the way.
100790	106250	I was working as a cryptologist designing systems back in the late 80s.
106250	112670	One of the things I did because computers were becoming a thing, the digital age was becoming a thing.
112670	119370	I had a client that asked if they could do a paper manual process on a PC
119370	126910	and was able to produce what I think was the first software-based NSA produced, which only did half of it.
126910	132510	The spy in the field was still using the paper, but the case handler was using a PC
132510	137890	and got the one-time pad key put on floppy disk.
137890	142990	I also had another customer, U.S. Special Forces, that I designed a cipher wheel for
142990	148230	that would help them with their encryption and decryption in the field of one-time pads.
151340	158520	But this is just a little bit of cryptographic history to explain where we came from in cryptography.
158520	163380	You were just hearing a talk talking about encryption that works in the digital age.
164140	168880	But basically, people have been trying to keep secrets for thousands of years.
168880	176020	And in the early days, it was primarily keeping secrets and communicating messages from one end to another,
176020	182300	very often used by the military, trying to get commands and directions to troops on the battlefield
182300	186800	from the command headquarters and the generals and things like that.
187460	192460	There's basically, historically, two different ways of doing that,
192460	197380	two different ways of protecting messages, and that's called codes and ciphers.
198380	203980	The difference between the two, very briefly, the way I learned it many years ago,
203980	211160	is code is something you do to words and phrases or thoughts and ideas
211160	217180	to try to shrink it down to something that's briefer to transmit and to communicate,
217180	224380	whereas a cipher is something you're doing to scramble and create what used to be called a cryptogram,
224380	229620	but it's a one-character, one-letter, one-number relationship.
230240	237520	There's two ways of doing that. One way is to do, like the title of this talk, a substitution.
237520	244980	You're replacing the real letters, the real characters, for something obscure and different in hopes of confusing people,
244980	250900	which seemed to work since a lot of people, not a lot of people, seemed to know what the name of the talk was.
250900	262080	The other thing you can do is you simply scramble the letters, same letters, just put them in a different order
262080	267260	in some way where the intended recipient knows how to put it back together.
267260	274520	I can give you a real brief example. This is an example of a transposition.
274520	285600	Anybody know what my shirt says? Close. Too many secrets. Too many secrets. Very good.
287800	296360	In terms of U.S. history, you know, back in the American Revolution, there was codes and ciphers used,
296360	302780	and an example of a code would be one if by land, two if by sea.
303500	310500	Big, long phrases reduced down to just a light or two lights in a church bell tower.
311280	321480	There was also codes being used by the armies. They had entire code books written up where numbers would represent all sorts of words.
321480	331340	And just as an example, there was Agent 711, which was actually the code for George Washington, General of the Army.
334420	342240	They also were using ciphers, but in this particular instance, they weren't using letters to replace letters.
342240	348960	They were using symbols, but it was still a Caesar cipher. It was still a simple substitution system.
348960	353840	And of course, Caesar cipher, that was actually used by the Confederate Army in the Civil War.
353840	362240	They had a cipher wheel themselves, which was part of the inspiration for the cipher wheel that I designed many years later.
364800	376580	Freemasons, they have loved to use ciphers for many years. The particular cipher they use, these are examples of tombstones of dead members of the Freemasons.
376580	389780	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.
389980	398340	And instead of the letters, they would simply use the shape of the box or the cell that the letter fell in. This is kind of what it looks like.
401050	412710	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.
412710	424310	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.
424970	432630	That really kind of existed. That is something that was done in the revolution. It was called the Arnold cipher.
435250	441870	Examples of transpositions, and this goes back, I think it's to the ancient Egyptians.
441870	450450	They used to have a stick of a certain size and wrap a leather strap around it, write their message, and then unwind it.
450450	454750	And so it was just a bunch of random letters written out on this big long strip.
454750	462410	They would send it to the recipient. He would have to have the same size stick to wrap it back together again and put it back in order.
462410	473070	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.
473070	480070	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.
480070	488270	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.
490410	501810	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.
502450	509110	Of course, we had 26 letters in the alphabet, so we had to double up. Very commonly, it was JK, but it could have been anything else.
509750	517370	The first ones were just simply A to Z, but to add a level of complexity, very often you would start using a keyword.
517370	528590	Did I do that? Hey! Who is this guy?
530150	539690	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.
539970	548510	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,
548510	555630	and then make a square and find out what the cipher is, if that makes sense to you by looking at it.
557470	567350	World War II, Navajo natives were enlisted to be radio operators and code talkers.
567510	570570	The Japanese, the enemy, never broke the code.
570570	582070	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.
582070	587550	You can see some examples there, like a battleship was a whale, things like that.
587550	591690	It seems intuitive now that that would have made sense, but it worked.
593010	599950	Machine encryption started becoming popular in the 30s, most famously in World War II.
599950	602150	There was the German Enigma machine.
602890	614170	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,
614770	621590	mostly to try to bide our time while our clearances, our background investigations were being completed.
621590	631730	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.
631730	633350	That was still a secret.
633350	645590	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.
645590	651330	The reason being, there was still somebody out there that was using it.
652050	661330	It was first broken in 1938 by Polish cryptographers and used for 50 years after that.
661370	664050	And we kept a secret that we knew how to break it.
664050	669950	I don't think there's anything else that we've ever done in terms of secrecy that's held up that long.
670690	674350	We being the US, we being NSA types.
675090	683750	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.
684050	688210	But again, it was about communication security.
688210	694390	When I first went to work for the defensive side of operations, it was called ComSec, communication security.
694410	699930	Shortly after that, it was renamed to information security, so we called it InfoSec.
702590	716570	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.
716570	722430	So, there was encryption involved and then a receiver on the other end that could reverse the process.
723030	735350	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.
736930	739290	These are just different examples.
740310	751430	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.
751430	761450	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.
761850	772390	Interestingly enough, that concept was invented by Hedy Lamarr, a movie actress from the 1920s.
773670	779750	That's just a shout out to women. We need more women in industry, because they're smarter than us men, very often.
781670	790410	As the systems advanced, keys needed to be more complex and longer, and keys needed to be changed frequently.
790550	797570	And when you were putting it into a little black box, you needed to have key machines that inject the keys.
797570	801290	So, these are some examples of key injectors.
802450	809230	This was something that was trying to be popular, again, when I was at NSA in the late 80s.
809230	819590	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.
819590	824890	And the idea was you type in a message, and it would immediately be encrypted on the screen.
825030	830470	Usually, it would be output to... gosh, we didn't have thumb drives back then.
830530	835930	It would either be transmitted automatically or be printed out on paper for distribution.
835930	850810	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.
852870	864070	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...
864610	873170	NSA came up with the specs, but different contractors bid on the idea of how to make a secure phone.
873710	881490	These secure phones were starting to use public-key cryptography, and the keys were seeded with these things that looked like keys.
881490	886230	But you had to stick it in, turn it, have it read it, and set it up.
886350	891430	And the first ones were half-duplex, which means kind of like a walkie-talkie.
891430	897490	It's pushed to talk, one-way communication, then you let go, and then the other person would talk back.
897490	901530	On a telephone, that was often very difficult.
901850	913530	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.
913690	919410	And eventually, they were able to put it into smartphones, cell phones, so it became more portable.
921430	926850	Very briefly, now we're in the age of digital cryptography. Things have evolved.
928430	933450	We all use cryptography every day in our lives on the Internet.
933450	939090	And there's probably a lot of you guys know this, but there's basically two forms of encryption.
939210	945050	There's symmetric encryption, where it's the same key used on either end of the communication.
945110	949330	And the communication these days are websites and so on and so forth.
950070	958730	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.
958870	969370	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.
969410	978670	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.
979450	986850	Very simplified view. There is a third form up in Canada, and it's called symmetric A encryption.
987710	988790	That was a joke.
990070	996210	Whitfield Diffie, he was affiliated with NSA off and on, Diffie-Hellman algorithm.
996210	1001930	I actually took a course with him early on at NSA. That's why I kind of threw his picture up there.
1001930	1008650	And then you got the modern age and all the fun stuff coming, like with quantum. I don't want to say that much about quantum cryptography.
1009210	1018350	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.
1018350	1029730	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.
1029730	1037350	But people are coming up with ways of being able to encrypt data, but still get meaningful information out of it.
1037350	1046450	I don't get my head wrapped around that very well. I kind of think that, okay, it's neat technology. It's a neat idea. Just don't call it encryption.
1046550	1050310	But I'm losing that battle, as many other battles.
1051170	1059910	Just in terms of why I kind of put this talk together, several months ago, I do a podcast called Paul's Security Weekly.
1059910	1070470	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.
1070470	1074070	And I'm like, you know, those are two different things. And he's like, well, no, they're interchangeable.
1074070	1084930	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.
1084930	1088390	And I'm gonna have to stick to my laptop here for a minute.
1089230	1094690	It says, well, you can read it, but it uses encryption saying it's the process of encoding.
1094690	1101570	And later on, it talks about ciphertext, plaintext.
1101570	1107050	But this has always been kind of a beef with me, because there's codes and there's ciphers.
1107050	1112050	And encoding is something you do with code, and then ciphering is something you do with ciphers.
1112050	1113750	They're two different things.
1113750	1119790	But they're very often used interchangeably, which bothers me, because I'm a purist.
1119790	1132330	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.
1132570	1134730	That's not technically accurate.
1135930	1138390	If you remember, I shared this earlier.
1140090	1143770	This is sort of the summary of what codes and ciphers are.
1143770	1150670	And I kind of wanted to set out and try to give some information about why I say these words are wrong.
1150670	1158690	And the CFP that I submitted, they gave me feedback that this was sounding subjective and opinion-based, but it's actually not.
1159290	1162270	I have sort of the Bibles of cryptography.
1162270	1172030	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,
1172030	1180850	written by gentlemen that were very highly respected cryptographers before World War II, sort of became the pioneers in the formation of NSA.
1182150	1183890	Lambros Kalimahos.
1184070	1194170	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.
1194170	1196630	You can see the explanation of it there.
1196630	1199630	But then also the other author was William Friedman.
1199750	1200950	Thank you.
1200950	1206370	Between he and his wife, Elizabeth Friedman, they were sort of responsible.
1206370	1210750	They're sort of considered the godfather, the godmother of cryptography.
1210750	1215790	So these are the authors. These guys were the ones breaking the codes and ciphers back in World War II.
1216330	1226210	So very quickly, the definitions that they wrote that are written down are such, and hopefully you can see it on the screen there.
1226210	1231830	I just want to highlight a couple things here where, again, it's in writing.
1231870	1236670	Ciphers have to do with individual letters. I say characters.
1236830	1240030	And then the codes have to do with words and phrases.
1242230	1249250	Oh, this is something I picked up. I was preparing for this this morning, and I thought this was kind of interesting.
1249250	1250970	I hadn't noticed it before.
1250970	1262650	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.
1262650	1272210	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,
1272210	1279350	encoding was always considered a way to shrink down, compress the data so it could be sent quicker and more easily.
1279350	1285640	And we never presumed that it was secure. That's what the encryption was for.
1286030	1295790	So brevity or speed, coding, secrecy, protection of what you're trying to transmit, cipher.
1297070	1303730	And then finally, just a brief mention here, again, where they talk about the introduction of key.
1303730	1307530	And we know key now most commonly as certificates.
1307530	1318370	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.
1318570	1329330	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.
1329330	1331110	That's where we are today.
1331110	1338210	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,
1338210	1345890	even in our modern digital context, is going back to the fundamentals of where they came from, codes and ciphers.
1345890	1356790	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.
1356790	1361430	That's where the cipher and the encryption and the big, long key streams come in.
1364110	1370070	Real briefly, it's all about protection of data, information-keeping secrets.
1370070	1374170	You probably know about the idea of confidential integrity and availability.
1374290	1378750	And then digital age introduced things like non-repudiation.
1379170	1384630	We spent most of our time in the digital age focusing on the confidentiality.
1384630	1390730	Nowadays, we're trying to figure out how to do the availability because of all the ransomware attacks that are out there.
1390910	1400610	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.
1400850	1405710	And it's on display through September if you make it to Maryland.
1405850	1409290	It's in a display case. There I am looking at it.
1409290	1411090	And there's the display.
1411090	1416430	You can probably not read it there, but it says, Jeff Mann reinvents the wheel.
1417050	1418690	So thank you very much.
