Welcome everyone to the third talk of the day by Tess Schrodinger. She's a jack-of-all-trades, master of none, and she's going to be talking about cryptography, codes, and secret writing. Good morning. Can everyone hear me in the back? I've heard there's some noise issues. We good? If at any point I start going down or it starts getting loud, just like raise your hands like you're on a roller coaster and that'll tell me to take it back up. Okay? Wow, the room's full. I was expecting to see some kids in here. I guess y'all stole their seats. So let me start with some questions. How many people are here because they've always been kind of intimidated by cryptography? And one person. Y'all are liars. Okay. How many are here because you just want to know? You just want to learn more? Okay, that's good. How many here are experts? Okay, good, so you're not going to point out when I'm wrong. Oh, wait, he said something about this cord here. Make sure I don't step on it. Do I have slides? Okay. Okay, I'm not going to touch anything. Okay, and then how many here are in the wrong talk and just don't feel like getting up and going somewhere else? Nobody. Okay, good. Okay, so I do want to preface this by saying if you are fairly experienced in cryptography, you may get bored. If you get up and leave, I will not be offended because I really did gear this towards people that I've heard over the years over and over again that they don't do any of the crypto contests and they don't, they just don't think they can. It's too hard. It's too confusing. They're not smart enough. And then when I try to introduce it to them, they get kind of excited. I'm like, oh, wow, this is like really neat. Nobody ever like explained it to me. So this is really high level only. I am not going to drill down into weeds on math. You will see a few equations, but you don't have to remember them. Just they're more for reference than anything. So this really is high level only. So if you wanted something a little more specific or technical, probably you're going to, you know, maybe not want to stay or you can. I'm sorry. Did someone ask a question? Okay. Maybe I'm hearing someone next door. Okay. So the first thing I want to do is these slides and the walkthroughs, all my crypto stuff that I'm going to show you. I have a Patreon page. You do not have to pay me. I just need somewhere to put stuff. So if you want any of the slides or any of the stuff I'm going to show you, if I run out, you're welcome to go out there and get it. It's free. PDFs, you can just download them. And I did want to thank Paul Ewan and James Trout for being there. They are two of my biggest supporters. Thank you guys. Love you so much. Our agenda. We're going to go over some definitions. I love to do that if you've seen me speak before. I think it's good to work with a common vocabulary. So you know what I mean when I say a certain thing and we kind of have an agreed upon vocabulary to get started. Then we're going to talk about some current applications of cryptography. And then a short history of cryptography and secret writing. We're going to talk about some of the clients. We're going to talk about some of the classical stuff. And then move into the modern era. I am going to attempt to make sure everyone in here can walk out. And in the bar tonight, you can explain elliptical curve cryptography and quantum key cryptography to your friends. Okay? That's my goal. All right? See if we can do this. And I'll let you in on a secret. If they don't know any of it, y'all, just you say whatever you want and they'll go, oh. Oh. Oh. Oh. Unless they Google you later, you're good. Or if they're drunk, you can just say, well, you were drunk, you misunderstood me. And then if we have time at the end, there are some really neat unsolved mysteries in cryptography, including a current open case. The FBI needs help solving that if one of you guys want to give it a shot, I'll have the thing and maybe one of you guys can solve a murder. So a little bit about me. I'm going to talk a little bit about the crypto industry. I'm Tess Schrodinger. Has anyone heard about my Choose Your Own Crypto books? Only one person. Good. So now I can talk about them. So I am one of the organizers for B-Sides DC and B-Sides Charm. And one of the things I was noticing over time was a lot of people weren't playing the crypto contests because they were really geared towards super smart black badge like full contact crypto people. And it kind of left a lot of folks out. Right? So I'm going to talk a little bit about that. And I'll let you in on the next session. And if we have any teachers in the audience, if I have any left over, I'd like the teachers, as long as I have some, to come get one. Because I decided that I wanted to create a contest for everybody. So it means your grandma could play, your kids could play, but the Black Badge people could play too. So if you're old enough to remember the Choose Your Own Adventure Mysteries, I've written a Choose Your Own Crypto. And I do have two versions, but I only have this one left. But the other one, again, it's online in PDF on my page. You can print it out, and the walkthrough is there as well. But what it does is it allows for you to go in. If you just want to do some fun puzzles, mazes, acrostics, anagrams, just fun little puzzly stuff with the kids, that's level one. If you really want to kind of start practicing with actual different systems, there's an adventure level two that you can go in. And each piece and leg that goes through teaches you a different kind. It talks about it, gives you a little history, gives you a way to help solve it. And then you put all the answers together at the end to get the solution. And then if you want to be like, okay, I got it, and do something a little harder, but not like that's going to make you cry, because I make the Black Badge guys cry, but, you know, that's not for everybody. You can go to the third level and kind of try out what you've just learned, but you don't have the hints or the walkthroughs or the explanations. And then if you do want to cry and you're into that, you can go to the third level and kind of try out what you've just learned, but you don't have the hints or the walkthroughs or the explanations. Black Ops, Black Badge level. So I am going to have some of these today. I'm going to have a couple little questions and little contests, so we'll give some of those away. And again, when I run out, they will be available on PDF. You can get them anytime. Share them with your friends. If you have a con and you want to use them there, please do. I'm fine with that. Just contact me, so if there's extra pieces that go with it, I can give them to you. So I do those little books. And my background. I have a background. bachelor's degree in sociology. I never thought it would be that useful in InfoSec, but oh my goodness. Sociology is very helpful because it helps you not only understand your adversary because they tend to have similar mindsets depending on, you know, what they're doing or what their objective is, but it also helps you understand your users, your user base. And, you know, doing security awareness, you're going to talk to your administrative assistants way different than you're going to talk to your devs, right? So that's really been helpful in ways I had not thought. So if you don't have a technical degree, don't assume that you don't have an opportunity in InfoSec. I have a master's in security management and then I have my master's work done in cybersecurity as well. And I recently just let everyone know I am going to begin working, if you have seen my quantum computing talk, I'm going to go back to school and start working on my Ph.D. in quantum computing and then go back to school and start working on my quantum physics, so I can go into the quantum computing, securing that, the hacking, etc. Non-technical stuff, I'm a triathlete. I home school my amazing child who's probably hiding behind me. And I love to Argentine tango. So, first contest. Can anyone here tell me what a common code used all the time when you're texting your family and friends? What can be considered a code that we use like every day if you text? Exactly. Exactly. Come up and get a book. Or someone pass it to her. She said leet speak. Or when you use acronyms like, we all know FML means fluff my llama, right? Right? Because this was friendly for kids' talk. So, whenever you use little things like FML, LOL, blah, blah, blah, those are like examples of what we kind of have little codes. And another one would be emojis, right? Because we all know what the peach means. That's an example. So, let's talk about some definitions. Secret. So, secret is essentially just we want to keep something hidden from knowledge or view. From a third party if you're exchanging with someone else or just from anybody if you want to keep it to yourself. So, code versus cipher. Does anyone know the difference? Well, with codes you're mapping a one-to-one thing. So like when we talked about what is the peach mean? That's a one-to-one thing, right? A cipher is a little different in that it includes a set of instructions or an algorithm that you apply in order to change whatever your message or your item or your text is, okay? So that's the big difference. You can see, I think this is an old espionage kind of thing. Like the word accountant actually meant come at once, do not delay. So that would be like a code. That thing meant this thing. But there was really no algorithm or anything like that. It was strict memorization or you used a table to figure it out. So cryptology, cryptography, and cryptoanalysis. Cryptology is kind of an overarching term that applies to the practice and study of techniques to secure communication. Cryptoanalysis is kind of an overarching term that applies to the practice and study of techniques to secure communication. And then, sorry, cryptography is that. Cryptoanalysis is when you're, excuse me, my throat is really dry. Cryptoanalysis is when you analyze and decipher the cryptography. And in cryptoanalysis, the big key steps are you want to try to determine what language or algorithm or system was used. And then, you want to reconstruct the key if you can. And then you use all of that to reconstruct the plain text. Encryption versus decryption. We have plain text. You're going to apply some sort of key. That will get you your ciphertext. And then you use a key. It could be the same key or a different key depending on if you're using symmetric or asymmetric, which we'll talk about later. Use that to decrypt it back into the plain text. So, some current applications of crypto. The first thing I want to talk about is why do we even need to secure communication? Well, if you're here, you probably already know why. It's probably pretty obvious. How many here have heard of the CIA triad? Okay. It's funny because things I take for granted that I think are pretty obvious are the things that I think everyone knows. Like apparently they don't. It just shows like in a little microcosm you just assume things are common knowledge. So, CIA triad is something we use a lot. It stands for confidentiality, integrity and availability. So, confidentiality obviously is keeping people who don't need to know that thing from knowing the thing. And then integrity refers to making sure the thing has not been altered or manipulated or changed. You're kind of ensuring the authenticity of that thing. It is what I say it is and it's not something else. And then availability is another part of it when you're in information security. Everyone who's spent a day at the office when the network's down, right? So, availability comes into play. A lot of times when you're securing certain systems, you want to apply an availability need to it because where if you have a game server for after hours at the office that you all plan to use, you can just lay on. It probably doesn't matter if it's down one night, you all just go do something else. But you really don't want your EMTs and their radio systems to be down, you know what I mean? So, that's used often when you're trying to identify what you need to do with the systems. What level do we need here? Obviously, confidentiality is going to be way different when your refrigerator's calculating how much milk you're drinking versus, you know, trying to send coordinates to troops in Afghanistan, right? So, this is the CIA triad, and it comes into play because we're going to talk about things like espionage, right? So, this is definitely a time when we would want to secure communications. Has anyone been to D.C. in the spy museum? If you're ever in Washington, D.C., go see it. It is amazing. And they have all the old, like, the stuff hidden in the pill and in the tooth and in the shoe. It's really neat. But for everyone who's been to D.C. in the past, it's really neat. But if you're ever through espionage, spies and agents have always been trying to keep information that they take or that they need to pass from others' knowledge. And then, you know, if they have to carry something that nobody else needs to know, do it in a surreptitious way that helps if they get caught. They can either destroy it, keep it hidden, or if it's found, it's not able to be deciphered. And then digital rights management. So, if you're ever through espionage, spies and agents, do this. And copyright infringement. This has gotten really big. Because, does anyone remember Napster? So, essentially now, you know, obviously artists and companies want to protect their product. But in an age where you can copy everything easily and pass it around, they need to find a way to kind of protect the rights of the artist or the producer or whoever whoever creates it so that you can't just make all these copies of it. So this digital rights management kind of restricts things like hardware or computer games, e-books, film, music, things like that. They will use cryptography to make that work so that they can kind of protect people's rights. Authentication, this is proving something or someone is true, genuine or valid. Okay? And an example of a good time is if you want to go to a website, you're going to kind of want to maybe make sure that's the website you should be on. Maybe someone's not spoofing it or, you know, created a copy. So there are, you know, you can look at the certificates and ensure that this website is who it says it is. You want to, you can use credentials and authentication to log in to systems that you need access to. And then when you, if you've bought like an electronics product and it has like the little holographic sticker on it, those are actually used for authentication. So it's really hard for people who do knock-offs to create those little holograms. So you can actually use those stickers to kind of make sure you're actually buying what, you know, people are claiming they're selling you. So digital signatures. So I'm so old that I only have a few things to say. Because, you I still print stuff out and sign it with a pen. And my boss is like, you realize you can just sign it on your computer and email it to me? And I go, oh, I forgot again. I'm getting better though. About half the time I can remember to do it. But you can now digitally sign just about anything if you just have the right credentials or you have your stuff set up to do it. And for those who aren't sure how that works, basically you take a plain text, it creates a hash function, which we're going to talk about just in a second, and you get a message digest out of that, right? And then it gets signed with a private key. And then that goes on your document. And then that can authenticate that you've signed something. So, you know, if someone comes back and says, oh, you signed this, you can say, nope, nope, that wasn't me. And, you know, the forensics folks can actually say, oh, yeah, no, it wasn't them. Or if you did sign something and it wasn't you, you can say, nope, nope, that wasn't me. And, you know, the you tried to say you didn't, they can pretty much prove you did. Secure communication. This is one of the reasons why we need stuff. I think I was going to do hash. Oh, yeah. Okay. So we're going to get to Bitcoin. Because apparently every slide deck has to mention Bitcoin now. Trying to keep my notes straight. So I had hash further along, but I wanted to talk about it now instead of making you wait. How many here are familiar with hash? Okay, good. So this will be easy. So hash is essentially when you have an input, you run it through a hash function or just in a, you know, calculation, and it gives you what's called a digest. And so as long as you have to make sure it's the same all the time, it always gives you the same digest. Right? And if anything changes, even one letter, you get a totally different digest. Okay? And this is important because you can use this to authenticate like software. If someone says, oh, here, download this. But you're like, oh, I'm not sure about that. They can say, oh, here's the hash function. So as long as those match, you know that it's what they say it is and someone hasn't put something else out there instead. And then this is just a visual kind of representation. You can kind of use hash to send a lot of things from programs to messages. I think even pictures and things like that. So that way people can confirm. And you can also kind of use that, talk about steganography later. You can kind of compare hash for different things to see if maybe there's stuff hidden in something that you're not familiar with. So you can kind of use hash to send a lot of things. Maybe it doesn't look like it's hidden in there. So let's do blockchain. Trying to figure out how I want to start here. So blockchain is not crypto. Okay? Blockchain is not crypto. Blockchain is a distributed ledger technology. Okay? It uses crypto. But it is not crypto. So does everyone here know how blockchain works? So do any of you know how blockchain works? Okay. I'll explain it in a nutshell. Okay, so I'll go through it. So essentially in a nutshell, it uses the digital signatures that we talked about, right? So the big deal with that is you need to make sure that the money can't be spent more than once. Because if I come up and I have like $100 and I give you 50 of them, I only have 50 physical dollars left. I can't just like snap my fingers and and suddenly I got 50 more dollars in my bag. And so when all this digital currency started, they're like, well, wait a minute, we need to figure out a way to make sure that someone's like, here's $100, boom. Oh, here's, you could use like unlimited supplies of money. So there needed to be some way to have some accountability to the system to ensure that people weren't doing that, because that just pretty much deletes the value of anything if people could just create as much of it as they want. There's no value in any more. So Mr. X will send Mr. Y a Bitcoin, all right? And then the network is going to record that transaction and then probably like a bunch that are made about in that same timeframe, that window. And then that little recording of all those transactions is called the block, right? And then there's computers that run special software. They call them miners. And they note the transactions in like a giant ledger, okay? And that ledger is called the blockchain. And it's basically an open source record of all the transactions made. So then the miners convert the blocks into sequences of code known as hash. And then when a new hash is generated, it's placed at the end of the blockchain and then the whole ledger is publicly updated and shares. Miners make a lot of money because the computing power is very energy and resource intensive. And then, there's probably a thousand videos online if you really want to dig deeper into it. But that's essentially what it is. And cryptography is involved, obviously, when you're trying to do the hash so that you can authenticate that this transaction has occurred and now this wallet has one less dollar, this one has one more, and then people can't go back and go, oh, no, no, now I have 50 more. It's like, no, no, no, that's not what the ledger says. So it just kind of hardens it slightly, not perfectly, against people trying to manipulate it or scam it. Now, if you have not heard, they actually have a new quantum ledger. So if you're interested in that, there's some guys using that technology. I think their website just went live in the last month or so. And it's really interesting and you might want to check it out if you're super interested in that kind of stuff. Okay, a short history of cryptography and secret writing. So let's do, let's do steganography. So steganography is interesting. The concept behind that is you want to conceal the fact that there's secret information in kind of a non-secret document or other medium, okay? And so I kind of put it up here with cryptography, only the actual message is hidden, but it's fairly obvious there's something there that's secret because you can see the code or the encipher or all that. With steganography, the message as well as the fact that communication is taking place is actually hidden, okay? And that's kind of useful in some cases when you're trying to not attract the attention of unwanted parties. And then obviously, if you just use plain cryptography, it can be, you know, people that you don't want seeing things will realize something's going on and then they'll start looking into it. But if they don't even realize something's going on, they're just probably going to ignore it and leave you alone. There is an interesting thing if you want to look into it deeper. In Virus Bulletin, April 2016, Stegoloader, have you heard of this? They were hiding malware, I think it was in images, so that if you got something, it downloaded the malware onto your system and you didn't even realize it because it was hidden inside something else. So they were actually using steganography to hide malware. And I believe, that that's something you definitely want to be aware of exists, especially if you are trying to secure an organization and your users. So this is an easy, fun one. Invisible link. Right? That's considered a form of steganography. We've all done the lemon juice and the light bulb trick, right? Right? Okay. Okay. So these are some fun ones. When I was a kid, the first book I got when I was super, super little, was a book on secret codes and writing. And they taught you just like how to write in mere reverse. And that's just a fun way, just to obscure something. Probably most everybody would notice it and figure it out pretty quick, but it is, it's kind of fun. Have you seen the one with the blocks, where you do the five and the three? So this one I loved. We used this to pass notes in third grade, all the time. I taught all my friends how to do it, and the teacher couldn't read our notes. Really, all you're doing, I'm taking a piece from a poem that was my favorite poem in the second grade, and it goes, the top of the hill is not until the bottom is below, and you have to stop when you reach the top for there's no more up to go. To make it plain, let me explain the one most reason why. You have to stop when you reach the top, and the first step up is the sky. Second grade, still remember it. But what I've done is taken this piece, and if you look at it carefully, you'll notice all the letters are there, I've just broken everything up into blocks of five. So on first glance, it may look like a bunch of gibberish, but if you know that's what I've done, it's easy peasy to read. And then if you want to make it a little more, like if I started it with the, it might be a little obvious. It might be like an xy, throw xyz at the end. And you can break it into either chunks of five, or you can break it into chunks of three. Or six, or ten, you can do it however you want. But it's just a fun way to kind of obscure writing fairly easily. The kids love it. So then the other one we loved, which we thought was fun, was we would do every other letter. So I'm sure the bottom again, just looks like gibberish, right? Well, all we've really done is we've just inserted a different letter between each letter of the phrase. Okay? So the red letters are just the miscellaneous extra letters, and then the phrase is in the dark black letters. So you can see, it's all there. It's fairly easy to read if you know what I'm doing. But someone who doesn't know, like your English teacher, has no clue what this says, right? So then you can make it a little more fun, and you can do the same thing with every other letter, and then block those. Right? We were pretty clever in the third grade, I must say. And then that's just again what it looks like. It's all right there, and if you're passing it to your friend, they can read it very quickly, but the English teacher can't. Now, are you ready for the challenge? You can do that every other letter, then break it into blocks, and then mirror it. The first three people that can tell me what that says win a book. And I have it on little slips of paper if you want it. You have to come up and tell me, I don't want them to know. Or did you say it too loud? Did anyone hear him? Come get a book. And then if nobody else, if someone else didn't hear him, come get a book. Anyone else figure it out? Huh? No. It's not the alphabet. I got three books. Limited edition. Come up and tell me if you know it. All I've done is done every other letter, broken it into three blocks, and then flipped it like a mirror. Come on up. One more. more. All right. We have our three. Does anyone here listen to Welcome to Night Vale? Oh, my God, you people. You need to go listen to that. All right. So it's a really good podcast. We enjoy it. My daughter actually cosplays as Cecil. But it's just a quote from the show, and now the weather. And I just padded out, I don't know if there's microphone on reach, but the P and the Q are padding, and then you go A and D, N-O-W, all the way across the top. And now the weather. And you know what? It seems kind of silly and childish, but not everybody got that, right? So it's not a bad thing to use if you're writing a love note to somebody you want to leave and you don't want anyone else to see it. Or again, those English teachers don't need to know everything. So it's just a fun one. You don't have to have a calculator to do it. It doesn't take forever. If the person you're communicating with knows what you're doing, it's super easy for them to read it. They can read it and smile. So that's just a fun one, I think. So let's talk about some classical cryptography. Okay. So in 1900 BCE, we had the first cryptography of the world. And it was a cryptographic They were using cryptographic techniques in the hieroglyphics in Egypt. And I believe I'm going to massacre the name of this king. But in the tomb of nobleman Khun Numhotep II, they've actually figured out that some of the hieroglyphics in his tomb were obscured and confusing to kind of hide it. And so they've actually figured out that some of the hieroglyphics in his tomb were obscured and confusing to kind of hide it. And so they've actually figured out that some of the hieroglyphics in his tomb were obscured and confusing to kind of hide it. And so they've actually figured out that some of the hieroglyphics in his tomb were obscured and confusing to kind of hide it. So not only did they have to decipher the hieroglyphics, but then they had to decipher the cipher in the hieroglyphics. In some cases, they think it's held kind of important stuff, but then they think other times they actually did it for amusement and fun and mystery because they had their own little contest like we do today. And this is 1900 BCE. They were already playing around with that. Another thing I thought was really interesting when I was reading up on Egypt was... They've learned that when they were putting the hieroglyphics in, there was a lot of detail about, like, the depth and the angle at which the writing was made that gave it a different meaning. So you may walk in and read one thing back then, but if you were trying to tell somebody something else based on how you carved it, it actually would have a different meaning or a different message to those who were in the know. Okay? So ancient Egypt, that was pretty neat. The next one, there's no kids, so I'm not going to freak any parents out. The Kama Sutra. In addition to some other stuff, apparently the Kama Sutra talks about ciphers. I guess we all missed that part, right? I can't say these things. I just don't know what I'm going to try. But in the Kama Sutra, it mentioned two different ciphers. The first one, I think it was a transposition cipher, and then the second one was more of a substitution kind of cipher. And then in ancient Persia, they also had these two ciphers. So again, they've been using these things for thousands of years. So what's the difference between a transposition cipher and a substitution cipher? Who knows? Okay, you're close. Basically, transposition means that you just rearrange everything, right? Using a given rule, which is usually your key. Substitution, which we'll have a slide in a second, it's just basically a one-for-one replacement. So that's the big difference between those two. One of the earliest ones, for the transposition, which kind of fed into what you're about to talk about, was the at-bash. And I want to say this one was, I don't know if it was first noticed there, but if you are a biblical scholar and you look at the book of Jeremiah, they found at least three different locations where they used the at-bash to code different names into that book of the Bible. And essentially the way it works is the first letter is replaced with the last letter, and then the second letter is replaced, replaced with the second last, and so on. But this was all the way back, biblical times. They used this, there are codes in the Bible, not that weird, funny stuff, like we're all going to die by a dinosaur on a meteor stuff, but like real, there are real codes in the Bible, and they used this stuff to kind of hide names and things in there. And the Spartan military skiddley, has everyone heard of this one? This is usually the first one you learn about. So this one's kind of neat. You basically, they would have a rod, of a certain diameter. And then your person you were sending the message to would have one that was equal. And then what you did, you would wrap like leather or hide or something around it, and you'd put your message on it, and then you'd unwind it. And then you'd give it to the messenger, and the messenger would take off running, or walking, whatever he did. And he'd take it to your person. And the theory was, if he got intercepted, he'd just have this paper with like some stuff on it, and they wouldn't be able to read it. And in theory, you could only read it if you had a rod of the same diameter to re-wrap it, and then you could see what it said. So even if you had another rod, unless it was right, you couldn't necessarily decode it. Okay, now we all could probably read it if we just wrapped it, you know. But back then, it was kind of high tech. That brings us to our good old friend, the Caesar cipher. So Caesar, I think, originally used a shift of three. Although I think he was known to use other shifts. His original, I think his like standby was three. And this is kind of, I guess he got, he was the one that made it famous. But essentially, it's like what she was saying earlier. You're taking and you're shifting by a certain number. And they also call this rot. So if you're ever wanted to play like a crypto contest, or if someone's like, oh yeah, rot 17. And you're like, oh yeah, I have no clue what that means. Now, you know, rot just stands for rotate. And the number afterwards is how many you rotate by. That's all that is. So, and then rot 13 is kind of the one I see used the most. But when we get to the Zodiac killer, and they think someone may have deciphered one of those finally. And it used a Caesar shift of 3.4. Which I'm not sure you how to do. But it's basically 3.4. So I got to do more research on that. But that one's interesting. And then our substitution cipher, as we said back when we separated out, is basically when you take a one for one just replacement. How many are familiar with frequency analysis? All right. So frequency analysis is when you take a look at your cipher text. And you try to determine what it says by examining the frequency with which you see certain letters, or symbols, or even numbers. Okay? So who knows the most common letters in the English language that are used? They're E, T, A, and O. So chances are if you have a fairly lengthy piece that you're reading, if you see one character or letter the most, chances are it's an E. And then T. And then the least common are usually your Z, Q, and X. And you can usually figure that out by thinking about Scrabble. Like the ones that are worth the most are usually the ones used the least. And then the pairs that you want to look for are going to be like T-H, E-R, O-N, A-N. Those are called digraphs. So if you can figure out like where your E's are, then you can just look for the E-R's. And then if you see two next to each other, some... What am I doing? If you can look for them next to each other, if you look like you have two E's, some of the most common repeats are S-S, E-E, T-T, F-F, and O-O. So you kind of then want to... If you can start looking for those and figure those out, and then you start looking for some common words like the or and or or, then you can start kind of cobbling things together and then just continuing to do the analysis until the message kind of unfolds in front of your eyes. And that's called frequency analysis. Who can tell me what this machine is? Whoever said it, come get it. Well, you get it because you stood up. Be proactive, people. Own it. There you go. All right. So this is the Enigma machine. We're going to talk about polyalphabetic ciphers. And essentially a polyalphabetic cipher is any cipher that's based on a substitution using multiple substitution alphabets. The first, they believe, that was used or created was by a guy named Alberti in 1467. But this takes us into Vigenere. How many have worked with Vigenere ciphers? Okay. So what you need, you will see these a lot in crypto contests. They're a pain to do by hand, but there's tons of stuff on the Internet that will figure it out for you if you ask for it. Essentially what you need is a keyword and your table. And the tables, the fancy name is tabula recta, but you can call them Vigenere squares or Vigenere tables. And essentially what it is is it's all the different ways the Caesar cipher can be written out. So the 26 different ways you can shift using a Caesar cipher, they're all here in a table for you, okay? So once you've got your table, you need your keyword. And that's going to tell you how to read your code. So if we have attack at dawn and our keyword is lemon, what you're going to want to do is you're going to want to, like, kind of write, I write mine, one on the top, one on the bottom. And then you have five keys, L, E, M, O, and N, okay? So that's your keyword, and it's composed of your five keys. And what you're going to want to do is you're just going to want to write it under your entire message and then just keep repeating it. So you can have a fairly long message and a fairly short key. It doesn't matter. But you just want to make sure you line it up. And then you just keep doing in repeating. So you can see here it's like lemon, lemon, Ellie. So it didn't need the full third one. You write it underneath. And then what you're going to want to do is you're going to want to, let's start with A. So you'll go up to your A on top, and then you'll come all the way down and look for that L in lemon. And when those two intersect, that gives you the first letter of your ciphertext, which is L. And then you do the same thing with your T out here. T comes all the way down to the E, which is in green. That gives you your X. Then you do your next letter. But this time, instead, it's encoded using the M instead of the E, so it brings you further down and gives you an F. So you can see this is a little more involved, a little more difficult to just do a quickie reverse like with the Caesar. Because you're using multiple different ways to code it. So you can see I kind of took you out to purple. It's basically where you intersect. I didn't do the whole thing. Does this make sense? Does anyone have questions on this? Does everyone get it? Are we good? Are we brilliant? Nice. So the Enigma machine. So this was used by the Germans, and they thought they were pretty clever, but we actually ended up cracking it, and they didn't know it, which that really worked to our advantage. So the way it worked was you had a sender and receiver that each had a machine. And the machines had to be configured identically for this to work. And you had to have, like there was a rotor selection and order. There were ring positions, plugs and connectors, and then a starting rotor position. And the starting rotor positions were established using key lists that changed daily. So you were issued a list, and then you knew if it was this date, like, what is this, 18th day of the month, you knew this is how you needed to set up. Okay? And so then the operator would type a letter, and then a lamp would indicate the different letter according to the substitution on how the machine was set up. And so then he would record that as the first letter. And each time you pressed a key, it also moved a rotor inside, so that the next key pressed used a different electrical path, and you got a different substitution. Okay? And then you just continue on this through the full message. And then you'd send the message, and then the receiving operator on his machine would key in your message, and it would light the opposite one up, and so then you could totally pull the entire crypto out, and it would emerge. And that's how the Enigma machine works. I do have here, if you want to grab one later, or there's a ton of them over there, we actually have a puzzle in the crypto village that is create your own Enigma machine. So you can actually take one of these home if you want, if you've got kids or you want to teach them, or you just want to play with it too, or your teachers. And this will kind of let you put together your own little Enigma machine. This right here is kind of an example of what one of the sheets look like. It's in German. But you can see where it gives you the tables and tells you how you would set it up each day. So each person who had, who was an operator of the machine would consult their table, set their machine up, get everything ready, and then they were able to send and receive messages. Okay. So we've talked about the Enigma. So this brings us into some more modern day kind of stuff. So Kirchhoff's principle and Shannon's maxim. Shannon's maxim is essentially a derivation of it. They're the same thing. They basically say a crypto system should be secure even if everything about the system except the key is known by your enemy. Okay. And Shannon's maxim was basically the enemy knows the system. So what it means is you should be able to put out the directions on how your system works, explain the whole thing, all the equations, but unless they've got that secret key, they can't do anything. And so that's kind of how modern stuff works is around these maxims. So you should be able to make it pretty airtight that way. Who's heard of the Navajo code talkers? Oh. These guys are really neat. There's actually a movie, I think it was 2002. It's a John Woo flick. Nicholas Cage stars in it. He plays one of the soldiers that was assigned to protect one of the code talkers. I think the movie is called Wind Talkers. So approximately 400 to 500 Native Americans in the U.S. Marine Corps. They were assigned as telephone or radio. Because their language was so obscure. It's not like the Internet today where everyone knows everything. You can go online and learn Swahili in the afternoon. Their language was so obscure and the only people that knew it or spoke it were them. So they would take one of them and assign them to a unit. And then they would take another and assign it to a different unit. And then when secure messages needed to be passed in the field, this guy would get on his thing and the soldier would say, tell them this. He'd translate in Navajo to his guy on the other end who would receive the message and then turn around and say, okay, this is what they need. So they did it entirely in their own language. And it was unbreakable. The enemy had no clue what they were saying because their language was so obscure that nobody knew it even existed. And they thought it was a code, but they couldn't break it because it was a language, not a code, right? It is strongly associated with Navajos, especially because of the movie, but it was actually pioneered in World War I by the Cherokee and Choctaw. And it wasn't limited to Navajo. I think they also had Lakota, Comanche, Cree, and a couple other ones. And these guys, hugely respected. And this is an example, like what the words they would use for the planes and the ships. And the picture down here on the bottom is one of them in the field. You can see he's on the radio talking to his compatriot over wherever their unit is. And then one of the other soldiers is sitting there and he's writing the stuff down. These guys were considered so valuable that many men died to make sure they stayed alive to keep the communication secured. They were considered absolutely priceless in the field. And even to this day, as you can see up here, forgive me for tearing up, they are so respected and so honored for what they've done for our country. So, sorry. So, let's talk about something that won't make me cry. Or maybe it will. So, symmetric key. Do you all know the difference between symmetric and asymmetric key? I mean, the big thing is with symmetric key, you're going to use the same key to encrypt and decrypt. AES, the Advanced Encryption Standard, that was established in 2001 by the United States government through NIST, National Institute of Standards and Technology. And it was to replace DES that was cracked. Fifteen designs were submitted. I want to say it was Rain Doll, Serpent, Two Fish, RC6, and another one. And, well, 15 designs, those were the finalists, and then they selected, I think, Rain Doll for the AES algorithm. Now, a couple people ask me sometimes with quantum coming online and the concern about that stuff being compromised, they're fairly sure that AES 128, that's the key length, fairly sure that's going to be pretty vulnerable. But right now, as of like the last week that I've checked, AES 258, 256, you might still be kind of okay. Yeah, 250, right, like I said, as of yesterday, this stuff changes so fast, especially in the quantum world. But right now, 256 is still looking okay, but I think they're obviously, and we're going to talk in a little bit, they are definitely still looking for some good alternatives for cryptography. If you are here on Sunday and super interested in quantum, there's a gentleman speaking on quantum cryptography, I will be here if you're interested, I definitely recommend the talk. And then we have our asymmetric key, and that's when we're just essentially going to use a different key to encrypt than we do to decrypt. Some examples of this are like the RSA, some of the elliptic curve techniques. This is day-to-day communications over the internet kind of stuff. So are we ready for some math? It's not really math. It's just going to, like people looking in the door will be all like, ooh, but it's not really that hard. So elliptic curve cryptography. Does anyone understand how this works? All right. When you walk out, you'll be able to explain it. Okay. So an elliptic curve, we've all taken algebra, right? You know how that works. They give you the, the equation and you draw the lines and you're good to go. So the elliptic curve, this is the equation for an elliptic curve. Okay. You don't have to memorize it. That's just what it looks like. So what you're going to want to do, well, not on paper, you'll have the computer do this, is anytime you take and draw a line through two points, straight line, it's only going to intersect the curve at one other point. Okay. So that's like a, a given. All right. Now, are you familiar with trapdoor functions? Okay. So a trapdoor function essentially is, it's really easy to get from A to B, but to try and work backwards from B to A, difficult if not impossible. And so what you're trying to create here with this elliptic curve is a, is a trapdoor function. Make it easy to do it, super easy, easy to, or super hard to undo it unless you have the key. Okay. So our starting point here on this graph is A. Okay. And there's a fancy little term that you'll hear. When you go from A to B, it's called A dot, D-O-T, A dot B. So if you're looking at this graph, A dot B equals C. You with me so far? It's easy. All right. So A dot something equals a certain value. So if my line was a little further up, it would be A dot that would equal a different point. So basically A dot B equals C, but X dot Y equals Z. Just examples only. All right. So you're with me so far? We're good. All right. So then, if you can hang with me through this slide, you're going to nail it. All right. So you can see this one's moving over here. Once you get up to your C point, you can drop a dotted line down so that it hits the curve on the other side. Since we're symmetric, if you get to C, D is simply going to be the negative of that. So if C is 3, D is going to be negative 3. If C is 42, D is going to be negative 3. D is going to be negative 42. You with me so far? We're good. All right. So you drop the dotted line down from C to hit the opposite value on the X axis with the symmetry. Okay? Now, then watch the line. You're going to go back that way. Does it go back that way? Okay. Yep. See how it goes back up to A? Okay? So you've got C. It's going to come down and around. C, dot, and then go back up. Okay? So every time you do a dot and drop across, that is your private key, is the number of times you go in a loop around. Okay? And, okay, so A, dot, N, right, the number of times, that's your key. So the key size you can max out any way you want this way on the graph. And you can determine how big your key is by how far you let those points come out on your X axis. But essentially, you dot the thing a secret number of times. That's it. You got it? We good? Explain it to your friends in the bar. Electric curve cartography. Okay? And this provides the basis of the trapdoor function. Because even if you have the curve, like you have the equation for the curve, and you even have your points, like your start point and your end point, unless you know how many times they've looped around through that thing, it's really hard to try and break that. Okay? And that's why they have been looking at it for use in quantum, like against, securing against quantum computers. How many here are familiar with quantum computing? Okay. Let me give you a quick like, like my two minute ShmooCon talk. Quantum computing, essentially the concern with that against cryptography is it can factor very large numbers much faster than classical computers because you can do it in the quantum state, you can function, you can do the functions on both, in superposition. Right? So, when you have some passwords that would take literally like a billion years using a classical computer, a quantum computer can break it in about 20 minutes. Right? And it's because of Shor's algorithm, it can factor. It's a factoring for quantum computers. So everyone's getting a little nervous, which they should be. That is why a lot of the, the cryptography that uses prime factorization is really at risk right now, is because of Shor's algorithm. And they've been exploring a variety of different ways to try and, you know, find a replacement, or replace mints. Elliptic curve was really high on the list a couple years ago when I was doing research. They were like, oh yeah, that's it, it's gonna solve everything. But the problem is, is that it's starting to look a little like, eh, that may not be our best choice right now. I do talk about something called lattice cryptography in my other talk. It's using lattice mathematics. That's also one of the things. And hopefully, I'm looking forward to this guy on Sunday. I wanna learn a little more from him, hopefully. But elliptic curve, I think this is used a lot in cell phone encryption. I think Blackberry uses this in some of their stuff. And then this is just some lists of encryption systems, or cryptosystems. We've got the symmetric, the asymmetric. Okay, this is the next one. Are you ready? Quantum key cryptography. All right, you got the elliptic curve, right? You're good? You ready to do quantum? All right. So, in a nutshell, quantum cryptography uses physics instead of math to create the key to encrypt your data. Okay? Every, some people look very sad right now. Okay? So, how do we do that? How do you, all right, how do you do, how do you use physics instead of math? Well, what you do is you generate your key using photons. Does everyone know what a photon is? It's a particle of light, right? So, this is how photons become a key. Okay? When you have a regular photon emitted by an LED, it's unpolarized. Okay? And that means that it can oscillate, that packet or the photon, it can oscillate like all over the place. It's a hot mess. Okay? And what you can do is you can pass it through a polarizing filter so that you give it a specific spin. Okay? All right? And the spins usually are like a horizontal, a vertical, or a diagonal. Okay? So, you are gonna emit your, and your particle's gonna be a one or a zero, like binary. So, you're gonna emit it. You're gonna put it through a filter and give it a spin. Okay? With me so far? Are we good? All right. Alice, she's gonna be sitting here. Is gonna create a string of random polarized photons and send them to Bob. Okay? So, here's an example. She might send these different ones, like a diagonal, vertical. So, she's gonna send these off to Bob. Okay? Now, Bob's on the other end. Bob has absolutely no clue what she's doing. All right? He has no clue what filter she's using. So, he just picks some random ones so that he can receive them. Okay? So, if Bob, or if Alice sends a photon that has a vertical spin, and Bob has, this is hard to do holding a mic, if Bob has a filter that's set up as a vertical filter, that photon is just gonna right through. Have you all seen those Japanese game shows where they have the cutouts and you gotta stand in the weird thing? So, it's like that. Think about like that. If it's vertical and his filter matches, it's gonna sail right through, and no problem. The problem is, is if he has the wrong filter, like a diagonal one, then it's either gonna give you a null result, because it's not gonna go through, or that filter will change the spin on the particle to match, and it'll be a diagonal. With me so far? We good? Y'all are brilliant. Okay? All right. So, what happens is now Alice can pick up the phone, and she can call Bob. She can say, hey Bob, these are the filters I used. Right? And so if anyone's trying to eavesdrop, they don't know what Bob used, they know what Alice used, but they don't know what Bob used. Right? So, she tells him what she sent. Okay? Now Bob knows what he used, and none of that's communicated back that way. So then, Bob knows what he got right, and what he got wrong, and that gives them a union of the ones that he knows are right. And that becomes your key. Okay? And you can't man in the middle this, because if you're familiar with, like, quantum physics, when you, with the Heisenberg uncertainty principle, if you observe something around you, or measure it, you collapse the wave function. So, they will be able to tell on either end if that wave function's been collapsed, and then they can scrap it and try again. So they'll know if someone's tried to observe it. Okay? But, this is a good little kind of diagram here where it shows, like, Alice's random bits, and then her filters, right? And then his, and then they have that talk in the middle, and then they realize this is their shared secret key. And that's quantum key cryptography. You got it? Explain it at the bar? Whoo! All right. That was the hardest part. So let's wrap up by talking about some unsolved mysteries. This is the fun part. I like these. We have a lot of murder and mayhem going on here. But we'll start with some of the, uh, the older stuff. So, have y'all heard of the face-dose disk? Okay. This was found, I want to say, like, early 1900s, like, around 1908. It's fired clay. It was found in a Minoan palace, uh, on Crete. And it's 16 centimeters in diameter, and they think it's written in linear A. So that's one of the two undeciphered writing systems in ancient Greece. So they still have writing systems from, you know, ancient times that they still haven't quite figured out yet. Um, and this was, uh, I think there's like 241 different little token piece, like, uh, stamper things that they probably put in. And it comes about 45 different distinct characters. Uh, and it, you read it clockwise, spiraling into the middle. And this is still kind of unsolved. There's some guys that have been working on it for quite some time. I want to say about six years. A linguist and, uh, another guy from Oxford. They're fairly certain that, uh, it's a prayer to a Minoan goddess. But they're not quite sure. So, anytime you get frustrated working on a puzzle, like, these guys have been working on this for six years and still haven't figured it out. So, don't feel too bad. But this is ancient Greece. And then, have you heard of the Voynich manuscript? This is so, there's, uh, it's either on YouTube or Netflix. It may be on both. But there's like an entire hour long thing on this manuscript. It's super cool. It's super fascinating. It'll put you to sleep if you need it. But this is a book of unknown writing. And they've carbon dated it to sometime, I think, in the 15th century. And, um, they, it may have been written during the Italian Renaissance, but they're not sure. Uh, it allegedly was found by a book dealer. But there is some question around, did he actually, like, buy it and find it? Or is it this just really elaborate hoax? They're not really sure. It's 240 pages. It's a combination of script and all sorts of, like, crazy writing. There's another page from it. nobody's been able to figure it out. Absolutely nobody can figure any of this out. It is just, they're boggled. The, the show, if you want to sit and watch, it's literally like an hour. And it's super fascinating, because they go through the whole history of when it was found. And they show you, a lot of the pages, and some of the stuff the cryptographers have been trying to figure out with it. There's some thoughts that maybe Francis Bacon wrote it? Which would be interesting, because of the Baconian cipher. Um, and then some others have suggested maybe it was Albertus Magnus. He was like a, a monk back then. Um, and then again, there are some people that just think it is just a big fake thing that this guy created to kind of make money. And, you, you know how people are. Um, but that's the Voynich manuscript. You ready for some, some murder? Have you heard of Tamam Shud? The Mystery of the Somerton Man. No? Alright, this is an unsolved murder. Okay? In December 1948, an unidentified man was found dead on a beach. Okay? No identification on him. Nobody had any idea who he was. A dead body on a beach. Six weeks later, they found a suitcase in the railway station cloak room that they were able to, I think they connected it to him somehow. And it was deposited at 11 o'clock the day before he died. Okay? There was no identification in the suitcase. But in the pocket of his pants, they found a paper that read, Tamam Shud. Does anyone know what that means? Okay, so that is the final words from the Rubaiyat by Omar Khayyam. It's a book. If you went to English, you probably had to suffer through it. Um, later, in a car, abandoned car parked near that beach, they found a copy of the book, and the last page that had those words on it had been torn out of the book. Okay? So they obviously, you know, were trying to figure out who'd done it. Um, when they examined the book very carefully, in the book, in some kind of faint writing, they found, uh, this, cipher-y stuff. They're really not sure what it is, but it looks like a cipher. And they also found a phone number. Well, they called the phone number, and it turns out to belong, it belonged to a local nurse, who actually lived near that beach. And the detectives went and showed, uh, like a plaster bust cast thing they had, made of the man, after he died, um, trying to identify him. They went and showed this to the nurse, and the nurse was like, I have no clue who that is. However, the way she reacted when she saw it, apparently she turned sheet white, and panicked. She claimed she didn't know who it was, but her reaction to what he, the, the cast, it was kind of obvious she knew something, right? So, she claimed she gave a book, the Rubaiyat, she gave a book like that to a guy named Alfred, uh, where she was doing some nursing training, like a couple years earlier, but she hadn't seen Alfred or the book in ages. And then when they actually tried to track down Alfred, they, they found him, but he had been dead for a couple years. Um, so then a couple years later, I think they were trying to reopen the case, the daughter of the woman came forth, and she said that her mother had known much more, and hadn't wanted to admit it. Um, and that there's some thought that the mother had ties to Russia and, and could have been a spy, and maybe that had something to do with the guy's death on the beach. But this is a completely unsolved murder case, and they have never been able to decrypt that note in his pocket. So if you want to give it a shot, it's on the internet. It's out there. But it's totally unsolved, and uh, nobody can read it. The McCormick Cipher, this is a neat one. So in June 30th, 1999, they found a dead body on the edge of a cornfield in uh, Missouri. And the body was of a man named Ricky McCormick. He was 41 years old, unemployed, on disability, um, he had a criminal record, I think he'd served time for statutory rape, and he was 15 miles from his home address, but he didn't own a car, and he had no public transportation. What was even more interesting was, um, he couldn't spell and could barely write his own name, yet on him, they found this note on the body. Okay? So the FBI actually has this on their website. You can go to forums.fbi.gov code. This is an open case still. They are looking for anyone who can help them solve this. Give them a call. Uh, but this, to this day, let's see, 1999, we're almost up on, uh, 20 years. 20 year cold case. Dead body, code in the pocket. They think that if they can break this code, they might be able to figure out who killed him, but there's no guarantees it could be a grocery list. The blitz ciphers. I love this picture. It just shows the British. Stiff upper lip, tea in the bombing. So the blitz ciphers, uh, World War II during the bombings, uh, this was in East London. Uh, this guy in one of the buildings found, uh, some wooden boxes and they had these pages in them that had all sorts of ciphers and stuff. This is what some of them look like. And at first, he only released three because he was really, actually, the gentleman didn't release them. He passed them on down. His nephew finally had them. His nephews have released a couple. Um, they might have been written with a quill pen, but the, the problem with these is that nobody's been able to actually look at them for real because the guy who owns them wants to stay anonymous and he will only release pictures of them. So then again, it begs the question, are these real? Is it a hoax? Are they just messing with cryptographers? But these are some of the pictures. And some of them look kind of like, if you're familiar with John Dee and the, the guy in, uh, English history. Oh. We'll go to the Zodiac. So, all right, who's familiar with the Zodiac Killer? All right. This is what got me interested in crypto. When I was a little kid, I actually read this book. Best book on Zodiac. I still own it. It's dog-eared. It's yellow. But if you're interested in an actual book on it, I highly recommend this one. And I just found, uh, my background before this was, I was a police officer. So I do, uh, medical, legal, death investigation, forensics. And I read a lot of this stuff and I just always found this fascinating. They never caught the guy and all the codes involved with the stuff. So in the late 60s, early 70s, there was a serial killer in Northern California. And he, I would say four men and three women, um, again, super fascinating how he did it. He would like, he was a hooded figure. There were actually two people that he went after that got away and were able to describe him. So they have like sketches of that. Uh, this book is great because it has a lot of the photography and the evidence and pictures from the crime scenes and everything. Um, they named him Zodiac after a series of taunting letters that he sent the police. There's a couple samples up here. And they were all these kind of ciphery cryptograms. And, uh, I think there were four total that were sent to the police. And only one had ever been solved. It was a husband, wife, hobbyist, cryptography group, or pair. They solved one of them. But the, it wasn't the same thing for each one. So it's not like they could just, ooh, you solved that one, solve the rest. It was different for each one. So, um, what I thought was really interesting was, there's a, a guy named Cory Starlipper. Um, he's not in here, is he? That happens to me sometimes. People I talk about are sitting in my talks. So he thinks he solved this. Okay? Um, he saw a movie on it in 2007. And, uh, he got super interested in it, like, to the point of, like, stalking the whole story. He had stuff everywhere. And he's like, I'm gonna crack this. So there's one of the, the cryptograms, it's called the 340, because it had 340 characters. And he thought to himself, you know, this is interesting. 340 is the area code for, for the US Virgin Islands. Right? And then he said, okay, three plus four plus zero equals seven. And then he did seven plus zero, and I don't know, he kinda got 707. Which happens, oddly enough, to be the area code for Vallejo, Napa, and Solano, where the murders occurred. He's like, I think I'm onto something. So he decided to use a Caesar shift of 3.4, because of the 340. Right? I'm not sure I've ever shifted 3.4. I wanna do some more research on that. But when he applied a Caesar shift of 3.4, do you know what came out? This. And, it was, oh my God. If you read through the whole thing, it ends with Lee Allen. My name is Lee Allen. Lee Allen happened to be one of the prime suspects on the top of the police list at the time of the investigation. They had brought in a handwriting expert who claimed that, oh no, no, his handwriting doesn't match whoever did these, but y'all know you can mask handwriting. That's not rocket science. And he also happened to pass a poly, but if you have any background in poly, you know that's not a science. So, unfortunately, Lee Allen died in 92, so they really can't confirm or deny this in any way. But, they said, we think this has been cracked, but there's other people that claim, oh no, no, you didn't do it, you didn't make it. So, it's still a little bit out there with the, has it been solved? I think there's still two others that are still not solved to this day. So, how we doing on time? We good? I think we're good. So, what have we learned? We learned a lot today. Y'all can explain elliptic curve, right? You can hide messages from your English teacher, right? Or your boss. Quantum key, right? Doing pretty good. So, that's pretty much it. That's my talk. I wanted to do just an introduction, a little bit of history, some unsolved mysteries, you know, just to kind of get people interested and realizing it's not all that difficult. I do have a couple copies of my book left. If anyone wants one afterwards, you feel free to take one. And if I run out, the PDF copy of the book is on my site, as well as the walkthrough for it. So if you get a book and then you get stuck and you want it, you want one? I'll make sure you get one. Okay. So, that's all I have. Are there questions? Comments? Short, smart remarks?