1 00:00:00,000 --> 00:00:01,780 Okay, welcome to the dead microphone. 2 00:00:03,880 --> 00:00:05,320 Turn it on. Thank you. 3 00:00:05,460 --> 00:00:08,620 I've actually got some on the A.B. booth, which is kind of a nice, pleasant change. 4 00:00:09,000 --> 00:00:12,820 My name is G. Mark, G. Mark Hardy. I'm here to tell you about Tales from the Crypto. 5 00:00:13,380 --> 00:00:13,660 Ooh. 6 00:00:15,280 --> 00:00:18,600 By the way, I brought all kinds of really cool schwag here, so if you like anything from 4B, 7 00:00:18,680 --> 00:00:20,440 and I've asked you a question, you can give me a reasonably intelligent answer. 8 00:00:20,540 --> 00:00:21,940 Come on up, grab something. I've got playing cards. 9 00:00:22,380 --> 00:00:24,080 I've got the regular playing cards, the unclass. 10 00:00:24,680 --> 00:00:27,160 And I've got the red ones, the classified. You're only allowed to look at one at a time. 11 00:00:27,160 --> 00:00:30,860 Time. Beer glasses, shot glasses, all kinds of really good stuff. 12 00:00:31,020 --> 00:00:33,320 So, without further ado, let's begin. 13 00:00:35,020 --> 00:00:37,220 Now, I can tell you all about stories you can look up in the library, 14 00:00:37,580 --> 00:00:39,520 or I can tell you how to win crypto contests. 15 00:00:39,600 --> 00:00:44,640 Want to learn how to make money and win contests and impress people and, like, get the badge that says 16 00:00:44,980 --> 00:00:46,820 Ninja Party Unlocked? Things like that? 17 00:00:48,740 --> 00:00:50,460 Okay, so, want to buy a beer tonight? 18 00:00:50,640 --> 00:00:55,200 I'll tell you stories about World War II crypto, American cyphers, Japanese cyphers, German cyphers. 19 00:00:55,260 --> 00:00:57,060 You'll find a lot of times that cryptography has been present. 20 00:00:57,160 --> 00:01:00,280 Throughout history, it's usually been the determinant about who wins wars. 21 00:01:00,640 --> 00:01:04,060 This is not miscellaneous, sideline stuff. 22 00:01:04,200 --> 00:01:05,340 This is key. This is important. 23 00:01:06,000 --> 00:01:10,040 And we look at the early days of crypto to the point that we figured out how to do asymmetric cryptography. 24 00:01:10,140 --> 00:01:10,920 And now, what do we have? 25 00:01:10,980 --> 00:01:14,320 We've got online commerce with all the great security of SSL. 26 00:01:15,000 --> 00:01:17,540 But wait, let's go a little bit down to basics first. 27 00:01:17,840 --> 00:01:22,580 Because what I want to show you is kind of the basic moves in which you'll need to learn cryptography. 28 00:01:22,980 --> 00:01:27,040 All the crypto contests that I've got and everything you might see out there, for the most part, 29 00:01:27,160 --> 00:01:31,380 don't involve using software to go ahead and brute force gigantic numbers. 30 00:01:31,520 --> 00:01:33,800 Okay, that's fine and that's great, but that's fun for the computer. 31 00:01:34,080 --> 00:01:35,060 What's fun for you? 32 00:01:35,400 --> 00:01:38,580 Figuring out all the different components, what makes cryptography work. 33 00:01:39,440 --> 00:01:43,060 So, I'm going to talk to you about transposition ciphers, where you kind of move things around. 34 00:01:44,840 --> 00:01:47,160 Substitution ciphers, where you change one thing for another. 35 00:01:48,280 --> 00:01:53,080 And product and expo-notiation ciphers, which is in the 102 talk, which we are not doing today. 36 00:01:53,700 --> 00:01:55,340 But remember, there is always beer. 37 00:01:57,180 --> 00:02:00,020 So, on a transposition cipher, what are we talking about? 38 00:02:00,140 --> 00:02:06,960 If I've got, let's say, a message attack at dawn, and I want to disguise this thing in a not-so-terribly-difficult code, 39 00:02:07,080 --> 00:02:11,640 but I want to make it in such a way that it is relatively difficult for somebody who's intoxicated to figure out, 40 00:02:11,880 --> 00:02:16,380 I will go ahead and map that thing across, let's say, four different columns. 41 00:02:16,520 --> 00:02:21,020 I could do three, I could do five, I could pick whatever number that makes me happy. 42 00:02:21,540 --> 00:02:26,860 And then what would you think the key would be if I'm going to go ahead and put things into four different columns 43 00:02:26,860 --> 00:02:27,660 and scramble them? 44 00:02:31,200 --> 00:02:32,300 Number four? No. 45 00:02:33,820 --> 00:02:37,060 Four-digit number? What's specific about that four-digit number? 46 00:02:37,920 --> 00:02:39,880 The order they're in. Come on up, grab something. 47 00:02:41,300 --> 00:02:46,420 So your key in this case would be one, two, three, four, which is a pretty bad key. 48 00:02:46,700 --> 00:02:48,460 But nonetheless, it works. 49 00:02:49,700 --> 00:02:53,360 You can get attack at dawn because you grab the first column, then this one. 50 00:02:53,400 --> 00:02:56,260 Anybody ever see the shirts that Bill Brain used to do with Not the Fed? 51 00:02:56,860 --> 00:02:58,860 N-O-T-T-H-E-F-E-D going down this way? 52 00:02:59,740 --> 00:03:01,980 Oh, no, some light bulbs are going, oh, that's what they mean. 53 00:03:02,500 --> 00:03:04,600 Okay, so all we've done is just transposed things. 54 00:03:05,300 --> 00:03:08,260 So transposition cipher means what you're going to do is just simply reorder them. 55 00:03:09,080 --> 00:03:10,320 And they can bring it back out. 56 00:03:11,180 --> 00:03:12,320 You can take it with a different key. 57 00:03:13,100 --> 00:03:16,480 The point is, what is preserved in a transposition cipher? 58 00:03:17,840 --> 00:03:20,440 The plain text is preserved, and also what is preserved? 59 00:03:21,740 --> 00:03:25,480 The letter frequency. Okay, I need a frequent and a plain text up here. 60 00:03:26,100 --> 00:03:26,840 I don't want a frequent. 61 00:03:26,860 --> 00:03:28,100 If I throw a deck of cards, someone's going to get hurt. 62 00:03:28,380 --> 00:03:30,400 I will throw them one at a time, but come on up and grab something. 63 00:03:31,200 --> 00:03:32,600 Anyway, honor system, only one piece. 64 00:03:32,920 --> 00:03:36,080 So, substitution cipher, probably one of the earliest ciphers that was out there, 65 00:03:36,140 --> 00:03:37,560 is known as the Caesar cipher. Why? 66 00:03:37,680 --> 00:03:38,680 Who do you think first used it? 67 00:03:39,280 --> 00:03:41,020 All right, that's not worth anything. 68 00:03:42,960 --> 00:03:45,600 But it turned out that back then in the days of the ancient Romans, 69 00:03:46,740 --> 00:03:53,860 that being able to come up with a thing that was written was pretty good cryptography. Why? 70 00:03:54,360 --> 00:03:56,840 Because 99% of the known world was illiterate. 71 00:03:56,860 --> 00:03:58,760 So if you write it down, you win. 72 00:04:01,900 --> 00:04:03,400 Yeah, and it's in Latin, too. 73 00:04:06,260 --> 00:04:09,020 Non carborundum illegitimis, right? 74 00:04:09,100 --> 00:04:10,360 Don't let the bastards grind you down. 75 00:04:11,200 --> 00:04:13,540 So, that's what I got to show for three years of Latin. 76 00:04:14,020 --> 00:04:15,720 So anyway, what Caesar cipher did is he said, 77 00:04:15,760 --> 00:04:20,020 let's take it and shift it over by a period of three letters. 78 00:04:20,240 --> 00:04:25,700 And so now what we do is we'll say A goes to D, B goes to E, C goes to F, 79 00:04:25,780 --> 00:04:26,840 and it runs. 80 00:04:26,860 --> 00:04:29,380 It rotates around the end, so Z doesn't go off into the universe. 81 00:04:29,680 --> 00:04:31,320 It does come back in A, B, and C. 82 00:04:31,580 --> 00:04:36,280 So that is starting to give you an idea of the whole key concept of a lot of cryptography, 83 00:04:36,400 --> 00:04:37,880 which is modular arithmetic. 84 00:04:38,280 --> 00:04:40,100 So what module are we looking at right here? 85 00:04:40,720 --> 00:04:41,440 Mod 26. 86 00:04:41,500 --> 00:04:45,200 So you can count either from 1 to 26, or if you're C programming, 0 to 25. 87 00:04:45,800 --> 00:04:47,540 But there's never a 27th letter. 88 00:04:48,060 --> 00:04:51,100 And so no matter how big that number gets, if you wrap around the end, 89 00:04:51,200 --> 00:04:53,620 you just knock off 26 until you get back down within the range. 90 00:04:53,820 --> 00:04:55,400 And so now if we take attack at dawn, 91 00:04:55,400 --> 00:04:58,960 and we put it in just a straightforward Caesar cipher, 92 00:04:59,040 --> 00:04:59,980 what do you get? 93 00:05:00,700 --> 00:05:02,400 Glyndiff and Glykgydzch, 94 00:05:02,600 --> 00:05:05,180 which you might also hear tonight at some of the parties. 95 00:05:07,140 --> 00:05:10,480 But there's nothing magic about that particular Caesar cipher. 96 00:05:10,560 --> 00:05:14,040 In fact, this is probably the simplest case of a substitution cipher. 97 00:05:14,280 --> 00:05:18,040 Because what we're doing here is how many possible Caesar ciphers are there? 98 00:05:19,840 --> 00:05:20,800 Who said 25? 99 00:05:21,200 --> 00:05:22,260 Come on up and get something. 100 00:05:22,580 --> 00:05:24,380 Because 26 is a singularity. 101 00:05:24,380 --> 00:05:25,740 It collapses back on itself, right? 102 00:05:25,780 --> 00:05:26,420 Well, your key is 0. 103 00:05:26,580 --> 00:05:28,300 A maps to A, B maps to C. 104 00:05:28,400 --> 00:05:31,380 And then you better hope that you go back in ancient Rome again, 105 00:05:31,440 --> 00:05:32,520 where most people are illiterate. 106 00:05:35,220 --> 00:05:38,620 Well, if you try to go ahead and do other substitution ciphers, 107 00:05:38,660 --> 00:05:40,800 you can come up with lots of different ways to do things. 108 00:05:41,320 --> 00:05:43,060 Because a visionary cipher says, 109 00:05:43,160 --> 00:05:45,540 well, hey, we kind of like this idea of a Caesar cipher, 110 00:05:45,640 --> 00:05:48,380 but just having one single key doesn't help a whole lot 111 00:05:48,380 --> 00:05:50,960 because you've got 25 attempts to try it. 112 00:05:51,080 --> 00:05:52,620 And oh, by the way, it also, as I said, 113 00:05:52,620 --> 00:05:54,840 someone said it preserves not only the plain text, 114 00:05:55,020 --> 00:05:56,860 but it preserves the frequency information. 115 00:05:57,540 --> 00:06:01,000 In the English language, what's the most frequent letter ever used? 116 00:06:01,320 --> 00:06:06,440 E, followed by T, A, O, N, I, R, S, H, 117 00:06:06,500 --> 00:06:07,540 all the way down to Q, X, and Z. 118 00:06:08,480 --> 00:06:11,340 And you can go back and read some books that have talked about cryptography, 119 00:06:11,400 --> 00:06:12,540 and you can look at frequency charts, 120 00:06:12,660 --> 00:06:14,640 but by and large, that tends to be what you see. 121 00:06:14,760 --> 00:06:18,180 By the way, what's the most common character in printed text? 122 00:06:18,780 --> 00:06:20,340 The space key, yes. 123 00:06:20,960 --> 00:06:22,140 That wasn't a crypto question. 124 00:06:22,140 --> 00:06:23,960 That was just a general knowledge, so no goodies for you. 125 00:06:24,000 --> 00:06:24,840 But hang in there, you'll get something. 126 00:06:25,840 --> 00:06:27,580 So anyway, a visionary cipher says, 127 00:06:27,920 --> 00:06:30,000 let's go ahead and pick multiple keys. 128 00:06:31,100 --> 00:06:33,240 And then we will encrypt every third or every fourth 129 00:06:33,240 --> 00:06:36,720 or every fifth letter with the same Caesar cipher. 130 00:06:36,820 --> 00:06:40,500 So you can see that key of A would take A to B, 131 00:06:40,620 --> 00:06:41,500 because A plus A is B. 132 00:06:41,640 --> 00:06:42,860 Think modular arithmetic. 133 00:06:43,200 --> 00:06:44,180 A plus P is Q. 134 00:06:44,840 --> 00:06:46,080 A plus Y is Z. 135 00:06:46,360 --> 00:06:48,120 And then, of course, you get B plus Y. 136 00:06:48,140 --> 00:06:49,200 It wraps around to A again, 137 00:06:49,280 --> 00:06:52,020 and you can start to see that this thing fits into a nice 26 by 26. 138 00:06:52,140 --> 00:06:56,000 And so here, if we use those things like P-A-R-T-Y, 139 00:06:56,820 --> 00:06:57,780 attack at dawn tomorrow, 140 00:06:58,360 --> 00:07:00,520 we break it up into groups of five. 141 00:07:01,440 --> 00:07:04,020 And this is something that you often saw back in World War II 142 00:07:04,020 --> 00:07:06,080 because the old Haslund machines, the decoders, 143 00:07:06,200 --> 00:07:08,560 would break code up into five character groups. 144 00:07:08,760 --> 00:07:10,160 Because how is this usually transmitted? 145 00:07:10,900 --> 00:07:11,780 By Morse code. 146 00:07:12,280 --> 00:07:13,960 Da-da-da-da-da-da-da-da. 147 00:07:14,040 --> 00:07:15,560 So what you're going to do is you're going to be sending that, 148 00:07:15,660 --> 00:07:16,740 and you're going to send it in groups long enough time 149 00:07:16,740 --> 00:07:17,960 that the guy will write down the answer 150 00:07:17,960 --> 00:07:19,060 and write down what he's getting. 151 00:07:19,240 --> 00:07:20,620 So now we'll take attack at dawn, 152 00:07:20,620 --> 00:07:22,940 and we're going to encrypt it with a recurring key. 153 00:07:23,100 --> 00:07:25,020 Party, party, party, party, party. 154 00:07:25,220 --> 00:07:25,820 What does that sound? 155 00:07:26,000 --> 00:07:27,260 That sounds like a good idea, right? 156 00:07:28,020 --> 00:07:29,860 So A plus P is what? 157 00:07:30,240 --> 00:07:31,380 No, it's not the Alexis Park. 158 00:07:31,480 --> 00:07:32,500 It is Q. 159 00:07:32,800 --> 00:07:34,220 And T plus A? 160 00:07:36,060 --> 00:07:36,420 U. 161 00:07:36,580 --> 00:07:37,060 Yeah, okay. 162 00:07:37,120 --> 00:07:38,100 And then we go right down the line. 163 00:07:38,160 --> 00:07:39,960 We find out that we can add these things right up there. 164 00:07:40,240 --> 00:07:41,060 And you get . 165 00:07:43,460 --> 00:07:46,780 And then that is a more robust form of encryption. 166 00:07:46,920 --> 00:07:49,880 Now, note what's happened here. 167 00:07:49,880 --> 00:07:52,160 We don't have the original plaintext anymore. 168 00:07:53,300 --> 00:07:56,460 Do we have the same frequency distribution of the letters 169 00:07:56,460 --> 00:07:57,620 as we started in the beginning? 170 00:07:59,540 --> 00:08:01,460 Anywhere is there the same frequency distribution 171 00:08:01,460 --> 00:08:02,240 as in the beginning? 172 00:08:04,360 --> 00:08:04,840 Pardon? 173 00:08:05,700 --> 00:08:06,820 Every fifth letter. 174 00:08:06,960 --> 00:08:07,540 Come on up here. 175 00:08:08,200 --> 00:08:11,180 Every fifth letter is going to be encrypted with the same key. 176 00:08:11,360 --> 00:08:13,060 So if your message is long enough, 177 00:08:13,320 --> 00:08:16,120 you can go ahead and use something smart like saying, 178 00:08:16,200 --> 00:08:17,540 wow, let's take every fifth letter 179 00:08:17,540 --> 00:08:19,820 and see if I can map it to a histogram. 180 00:08:19,880 --> 00:08:21,280 A histogram of the English language. 181 00:08:21,540 --> 00:08:23,380 Looking for the peak at E, then T, then A. 182 00:08:23,440 --> 00:08:24,400 Well, it's not going to land on that letter, 183 00:08:24,480 --> 00:08:26,160 but you're going to see peaks and valleys. 184 00:08:26,540 --> 00:08:29,540 And the more information content that's in your message, 185 00:08:29,640 --> 00:08:32,240 the more likely it is that they use a really bad encryption scheme. 186 00:08:32,700 --> 00:08:34,940 Because then you say, hey, the most frequently one is E, 187 00:08:35,040 --> 00:08:36,740 and then the least frequently one would be Z, 188 00:08:36,780 --> 00:08:37,280 and go from there. 189 00:08:37,480 --> 00:08:38,720 Usually you don't care about the low ones 190 00:08:38,720 --> 00:08:40,860 because you might not even have a Q, X, or Z in your message. 191 00:08:41,480 --> 00:08:43,500 So by going ahead and using the most common ones, 192 00:08:43,620 --> 00:08:44,700 you can start to make guesses. 193 00:08:44,940 --> 00:08:47,140 Now, you see the cryptogram that's in the daily newspaper 194 00:08:47,140 --> 00:08:48,680 in a lot of cities today, right? 195 00:08:48,680 --> 00:08:50,660 How many possible keys are that? 196 00:08:50,740 --> 00:08:52,220 It's a simple substitution cipher. 197 00:08:52,600 --> 00:08:54,900 Well, A can map to how many other letters? 198 00:08:55,500 --> 00:08:55,940 25. 199 00:08:56,120 --> 00:08:59,740 So B can map to any of the remaining 24, 23, 22. 200 00:08:59,900 --> 00:09:01,940 So 25 factorial combinations, 201 00:09:02,560 --> 00:09:05,460 which is a number that I think is actually bigger 202 00:09:05,460 --> 00:09:06,820 than our federal deficit this week. 203 00:09:09,800 --> 00:09:14,560 But yet, trying to brute force billions and billions of keys 204 00:09:14,560 --> 00:09:16,580 is not the way most people solve that puzzle 205 00:09:16,580 --> 00:09:17,700 over a coffee in the morning. 206 00:09:17,740 --> 00:09:18,340 How do you do it? 207 00:09:19,040 --> 00:09:21,620 You eliminate a lot of those possibilities 208 00:09:21,620 --> 00:09:24,020 by looking at the histogram, 209 00:09:24,180 --> 00:09:25,520 by looking at the recurring patterns. 210 00:09:25,740 --> 00:09:27,200 And so for people who tell you, 211 00:09:27,260 --> 00:09:28,360 or vendors that tell you, 212 00:09:28,400 --> 00:09:29,940 our cryptography is better 213 00:09:29,940 --> 00:09:33,180 because we have a bigger key space than they do, 214 00:09:33,360 --> 00:09:35,380 the answer is, so what? 215 00:09:35,860 --> 00:09:37,660 Your key space might stink 216 00:09:37,660 --> 00:09:39,920 because your algorithm is no good, 217 00:09:40,000 --> 00:09:41,200 and so you can, 218 00:09:41,940 --> 00:09:44,100 with a pen and a pencil and a cup of coffee, 219 00:09:44,240 --> 00:09:47,440 crack something from trillions and zillions of keys. 220 00:09:47,880 --> 00:09:49,760 That's not where the security lies. 221 00:09:49,860 --> 00:09:52,340 The security lies in the actual cryptography itself, 222 00:09:52,900 --> 00:09:54,720 and the fact that you've got a large key space 223 00:09:54,720 --> 00:09:57,780 just means that somebody can't kind of look at it and go, 224 00:09:57,900 --> 00:10:00,240 oh, yeah, I bet this is this, this is this, this is this, etc. 225 00:10:02,400 --> 00:10:03,260 There's another cipher. 226 00:10:03,380 --> 00:10:05,400 And again, I'm giving you all these basic primitives 227 00:10:05,400 --> 00:10:07,860 because you're going to see these things in crypto contests 228 00:10:07,860 --> 00:10:09,420 and find ways to make stuff. 229 00:10:09,500 --> 00:10:10,940 Who here has won one of my crypto contests before? 230 00:10:11,920 --> 00:10:12,780 All right, a couple of folks. 231 00:10:13,380 --> 00:10:14,600 So you're here on my nickel, right, 232 00:10:14,660 --> 00:10:16,200 coming out here from East Coast? 233 00:10:16,380 --> 00:10:16,560 Yes. 234 00:10:16,560 --> 00:10:17,040 All right. 235 00:10:17,280 --> 00:10:18,340 I give away plane tickets. 236 00:10:18,440 --> 00:10:19,180 I fly too much, 237 00:10:19,180 --> 00:10:20,580 and so I give away round-trip plane tickets 238 00:10:20,580 --> 00:10:21,540 to people who solve my puzzles. 239 00:10:21,640 --> 00:10:22,760 I've given out seven of them, by the way. 240 00:10:22,940 --> 00:10:24,940 Southwest, anywhere they fly in the U.S., good for a year. 241 00:10:25,280 --> 00:10:27,140 It's best if you use them coming to a hacker conference. 242 00:10:27,220 --> 00:10:27,580 Very good. 243 00:10:31,020 --> 00:10:32,260 But a Playfair cipher, 244 00:10:32,360 --> 00:10:33,760 or sometimes what I call don't cheat, 245 00:10:34,480 --> 00:10:35,200 and oh, by the way, 246 00:10:35,220 --> 00:10:36,780 anybody go to the Ninja Network party last year? 247 00:10:37,340 --> 00:10:38,640 We'll talk about that badge in a minute. 248 00:10:38,700 --> 00:10:40,460 You might see something that looks like this. 249 00:10:40,760 --> 00:10:43,480 What it involved is taking all 26 letters 250 00:10:43,480 --> 00:10:45,280 and putting them into a 25-square grid. 251 00:10:46,640 --> 00:10:47,000 Okay. 252 00:10:47,160 --> 00:10:48,660 Which letter do you think we ought to leave out? 253 00:10:49,060 --> 00:10:49,340 Q. 254 00:10:49,620 --> 00:10:49,980 Q. 255 00:10:50,280 --> 00:10:51,040 Yeah, it happens to me. 256 00:10:51,060 --> 00:10:52,180 Some places, they'll leave out C. 257 00:10:52,220 --> 00:10:53,160 Some places, they'll leave other things. 258 00:10:53,420 --> 00:10:56,920 This is not too different, as you see it here, 259 00:10:57,440 --> 00:10:59,000 from what was called the TAP code. 260 00:10:59,220 --> 00:11:00,700 Anybody remember where the TAP code was used? 261 00:11:02,400 --> 00:11:04,080 Yeah, the POWs in Vietnam. 262 00:11:04,200 --> 00:11:07,360 What happened in Hanoi is that if you're a prisoner, 263 00:11:07,460 --> 00:11:09,440 they kept you isolated from all the other prisoners. 264 00:11:09,660 --> 00:11:10,980 So you weren't allowed to talk to them. 265 00:11:11,040 --> 00:11:11,860 You weren't allowed to communicate with them. 266 00:11:11,860 --> 00:11:12,880 They'd beat you if they found out. 267 00:11:13,000 --> 00:11:14,840 Well, pretty quickly, they developed a TAP code 268 00:11:14,840 --> 00:11:18,140 that apparently the North Vietnamese never quite figured it out. 269 00:11:18,620 --> 00:11:20,700 And what it involved is just giving row and column. 270 00:11:20,800 --> 00:11:24,040 You're basically setting an index on this particular grid. 271 00:11:24,440 --> 00:11:26,800 So if you want to greet somebody, like hello, 272 00:11:27,020 --> 00:11:31,600 the first one is a two down, three across, 273 00:11:31,780 --> 00:11:34,980 then first row, five, H-E, 274 00:11:35,060 --> 00:11:38,260 and then hello and things like that. 275 00:11:38,600 --> 00:11:42,240 Pretty basic, but that's sort of one of those encryption things 276 00:11:42,240 --> 00:11:44,640 that is just this, what type would you call that? 277 00:11:46,160 --> 00:11:46,720 Substitution, right? 278 00:11:46,800 --> 00:11:49,860 You're substituting TAPs for particular letters. 279 00:11:49,940 --> 00:11:50,540 Pretty straightforward. 280 00:11:50,940 --> 00:11:52,220 And so in this particular case, 281 00:11:52,600 --> 00:11:55,940 if we use a key of Hacker Jeopardy needs more crypto, 282 00:11:56,120 --> 00:11:58,700 for example, another cheap plug for Hacker Jeopardy, 283 00:11:59,880 --> 00:12:02,560 what we're going to do is we're going to start to populate those letters 284 00:12:02,560 --> 00:12:03,820 until we see a repeat. 285 00:12:04,000 --> 00:12:05,720 And then we'll skip it because we can't use it more than once, right? 286 00:12:05,880 --> 00:12:08,560 And so there's H for hacker, H-A-C-K-E-R. 287 00:12:09,720 --> 00:12:11,340 And I thought I had this on automatic, but it's not. 288 00:12:11,820 --> 00:12:14,620 Jeopardy, J, we already used E, so we can't use it again, right? 289 00:12:14,840 --> 00:12:15,460 The Z is already up there. 290 00:12:15,520 --> 00:12:16,940 So we skip it and go to the O. 291 00:12:17,300 --> 00:12:20,560 And then P-A-R-D-Y. 292 00:12:21,400 --> 00:12:23,960 And then needs more crypto. 293 00:12:24,240 --> 00:12:28,160 And now you're going to find out that you just fill in the last of the letters at the end. 294 00:12:28,500 --> 00:12:32,560 So just about every time a Playfair cipher is going to end in the bottom right corner with a Z, 295 00:12:32,700 --> 00:12:34,280 unless there's a Z in your key. 296 00:12:34,480 --> 00:12:36,600 And you say, well, is that a weakness? Potentially. 297 00:12:37,040 --> 00:12:37,960 Is there a problem here? 298 00:12:38,060 --> 00:12:42,860 Well, now that I've got this weird-looking grid, how do I use it? 299 00:12:43,340 --> 00:12:46,340 What I say with a Playfair cipher is that it's, again, it's pretty simple. 300 00:12:46,420 --> 00:12:47,120 There's only three rules. 301 00:12:48,100 --> 00:12:55,200 And so what the three rules are is that if you have two letters that are in the same row, 302 00:12:56,060 --> 00:13:00,120 like I'm trying to encrypt, you know, R-O. 303 00:13:01,140 --> 00:13:05,060 I would just simply say R and O are in the same row, so I go to the right one click, J and P. 304 00:13:05,520 --> 00:13:10,020 If I'm trying to encrypt a pair of letters S-T, where do you think it goes? 305 00:13:11,280 --> 00:13:12,000 M-Y. 306 00:13:12,000 --> 00:13:12,640 M-Y. 307 00:13:12,860 --> 00:13:13,620 It wraps around. 308 00:13:14,000 --> 00:13:14,560 All right? 309 00:13:14,580 --> 00:13:17,160 So just think of this thing as like a cylinder that wraps back on itself. 310 00:13:17,420 --> 00:13:22,320 If I want to encrypt the letter pairs F-I, they go to G-L. 311 00:13:22,620 --> 00:13:27,040 And if I want to encrypt the letter pairs like C-E, it would go to K-H. 312 00:13:27,080 --> 00:13:28,660 So in a row, it's pretty straightforward. 313 00:13:29,660 --> 00:13:31,040 But you're noticing what I'm doing. 314 00:13:31,180 --> 00:13:32,940 I'm breaking it up into two-letter groups. 315 00:13:33,260 --> 00:13:33,660 Why? 316 00:13:33,860 --> 00:13:38,260 Because when I look on my particular grid, I need to have like a start and an end point. 317 00:13:38,480 --> 00:13:39,580 But wait, there's more. 318 00:13:39,780 --> 00:13:41,340 What if they're in a column? 319 00:13:42,400 --> 00:13:45,060 What if I try to encrypt the letter pair A-N? 320 00:13:45,300 --> 00:13:46,860 What do you think the result would be? 321 00:13:47,780 --> 00:13:48,580 J-F. 322 00:13:48,760 --> 00:13:49,740 Yeah, you just go down one. 323 00:13:49,820 --> 00:13:55,660 If I encrypted S-W, S goes to G, W goes to C. See how that works? 324 00:13:55,800 --> 00:13:56,500 That's rule two. 325 00:13:56,660 --> 00:13:58,040 And what's the last possibility? 326 00:13:58,140 --> 00:14:03,080 If they're not both in the same row or they're not both in the same column, they're in different rows and columns. 327 00:14:03,400 --> 00:14:04,220 Is that a problem? 328 00:14:04,940 --> 00:14:05,740 Not at all. 329 00:14:06,180 --> 00:14:10,880 So if I want to encrypt the letter pair H and S, I just kind of make a little... 330 00:14:11,360 --> 00:14:12,100 Opposite corners. 331 00:14:12,700 --> 00:14:14,980 H goes to C, S goes to Y. 332 00:14:15,540 --> 00:14:22,080 If I encrypt J and I, it would go J goes over the same column I as it becomes a P. 333 00:14:22,240 --> 00:14:24,100 I goes back over to J's column, it's an F. 334 00:14:24,400 --> 00:14:27,320 Do I ever have to worry about wrapping around when I'm doing something like that? 335 00:14:27,880 --> 00:14:28,540 No, I don't. 336 00:14:28,960 --> 00:14:30,280 Because it's not going to wrap around. 337 00:14:30,420 --> 00:14:34,520 So the wrap around is only going to get you if you're both in the same row or the same column. 338 00:14:34,640 --> 00:14:36,660 So it's like an infinite thing here, infinite thing here. 339 00:14:37,000 --> 00:14:38,560 But the opposite corners work. 340 00:14:38,720 --> 00:14:38,940 So. 341 00:14:38,940 --> 00:14:41,780 With those three simple rules, I can now take the... 342 00:14:41,780 --> 00:14:45,000 Now is the time for all, you know, good men to come to the edge of their country. 343 00:14:45,300 --> 00:14:48,760 And I'll break it up into two-letter pairs. 344 00:14:50,140 --> 00:14:51,320 Now, here's the problem. 345 00:14:51,480 --> 00:14:55,760 If I've got the letter LL at the end for all, what do I do with LL? 346 00:14:55,840 --> 00:14:56,720 Where does LL go to? 347 00:14:57,360 --> 00:14:59,680 Well, LL goes to LL. 348 00:14:59,780 --> 00:15:00,820 It collapses onto itself. 349 00:15:01,080 --> 00:15:01,820 Is that a good crypto? 350 00:15:02,160 --> 00:15:02,940 No, it's not. 351 00:15:03,040 --> 00:15:07,980 So one of the first rules about a Playfair cipher is it can't encrypt a pair of letters that are the same. 352 00:15:08,940 --> 00:15:09,640 So what do you do? 353 00:15:10,180 --> 00:15:11,560 You shove a filler in there. 354 00:15:12,420 --> 00:15:13,640 How about we put it in a queue? 355 00:15:13,820 --> 00:15:14,300 Would that work? 356 00:15:14,820 --> 00:15:15,860 Because you're not using it. 357 00:15:16,840 --> 00:15:17,380 All right. 358 00:15:17,460 --> 00:15:18,340 Because then you don't know what to do with it. 359 00:15:18,380 --> 00:15:20,060 It won't process through your encryption algorithm. 360 00:15:20,420 --> 00:15:21,600 So what do you think we ought to do with it? 361 00:15:22,820 --> 00:15:24,040 We'll stick an X in there. 362 00:15:24,520 --> 00:15:25,080 Why not? 363 00:15:25,200 --> 00:15:26,060 X marks the spot. 364 00:15:26,260 --> 00:15:30,220 So you can look at we've padded the LL at the end and put an X after each one. 365 00:15:30,460 --> 00:15:32,780 So now that pair of LL becomes LXLX. 366 00:15:35,440 --> 00:15:38,400 So now is the time for all becomes the following. 367 00:15:38,400 --> 00:15:46,240 We take that grid and now the N and the O, if we look at it, there it is. 368 00:15:46,600 --> 00:15:47,680 Third row, second column. 369 00:15:47,940 --> 00:15:49,580 NO becomes SJ. 370 00:15:50,680 --> 00:15:52,880 WI, we look in there and it becomes XG. 371 00:15:53,320 --> 00:15:57,400 And if you look at each pair and take a moment to look at the grid, it's pretty straightforward. 372 00:15:57,720 --> 00:16:00,560 Well, you can code this thing or if you had to, you could do it by hand. 373 00:16:03,260 --> 00:16:07,160 Seeing as this came from the 19th century, I would say it's a pretty good job that it was done by hand. 374 00:16:07,880 --> 00:16:08,200 Initially. 375 00:16:08,400 --> 00:16:10,080 In fact, a lot of these things can be done that way. 376 00:16:10,220 --> 00:16:13,860 When I run crypto contests, I found people looking for, hey, I got to go download something, get a little JavaScript. 377 00:16:14,060 --> 00:16:14,660 Do it yourself. 378 00:16:15,000 --> 00:16:15,680 Think through it. 379 00:16:15,700 --> 00:16:16,900 Don't let somebody else do your thinking for you. 380 00:16:17,080 --> 00:16:22,840 The reason being is that as we look at cryptography, it becomes the backbone of a lot of things we do in our society. 381 00:16:22,980 --> 00:16:25,540 It's also our protection for privacy and security. 382 00:16:25,920 --> 00:16:27,540 But it's based on some real simple moves. 383 00:16:29,960 --> 00:16:37,360 Probably the most secure cryptography ever invented by man is what's called the Burnham cipher or one time pad. 384 00:16:37,360 --> 00:16:38,860 What do you think one time pad means? 385 00:16:39,640 --> 00:16:42,020 Use it once and throw it away. 386 00:16:42,780 --> 00:16:45,040 And so how long do you think the key has to be? 387 00:16:46,160 --> 00:16:47,640 The same length as the message. 388 00:16:47,940 --> 00:16:51,360 And all I'm going to do is I'm going to XOR them to the bit by bit. 389 00:16:51,720 --> 00:16:53,640 So XOR works really nice. 390 00:16:53,820 --> 00:16:55,860 Zero exclusive or zero is zero. 391 00:16:56,420 --> 00:16:57,680 Zero XOR one is one. 392 00:16:57,800 --> 00:16:59,080 One XOR zero is one. 393 00:16:59,080 --> 00:17:00,520 And one XOR zero is zero. 394 00:17:00,560 --> 00:17:02,980 What mathematical function does XOR look like? 395 00:17:05,520 --> 00:17:05,960 Modules. 396 00:17:07,360 --> 00:17:09,000 It's not a integer addition but a mathematical operation. 397 00:17:09,300 --> 00:17:11,260 That's not something that something in fifth grade would know. 398 00:17:12,460 --> 00:17:12,840 Pardon? 399 00:17:13,040 --> 00:17:13,500 Not division. 400 00:17:13,720 --> 00:17:14,500 Can't divide by zero. 401 00:17:16,280 --> 00:17:17,880 Well, yeah, but that's not a simple. 402 00:17:18,060 --> 00:17:19,460 How about a not equal sign? 403 00:17:20,860 --> 00:17:21,240 Okay. 404 00:17:21,360 --> 00:17:22,580 Is zero not equal to zero? 405 00:17:22,680 --> 00:17:23,220 No, it's not. 406 00:17:23,320 --> 00:17:24,080 Zero being false. 407 00:17:24,220 --> 00:17:25,220 Is zero not equal to one? 408 00:17:25,380 --> 00:17:26,200 Sure, it's not equal. 409 00:17:26,360 --> 00:17:27,080 So that's interesting. 410 00:17:27,200 --> 00:17:35,840 If we do not equal, if anything is not equal to zero or if anything is not equal to itself. 411 00:17:35,840 --> 00:17:37,840 So if anything is not equal to itself, what collapses what? 412 00:17:37,940 --> 00:17:39,240 A string of zeros, right? 413 00:17:39,880 --> 00:17:48,060 So if we encrypt a message with the key and then we re-encrypt the message with the same 414 00:17:48,060 --> 00:17:50,760 key, what happens to the key? 415 00:17:51,920 --> 00:17:54,500 It goes away and you get just the message back. 416 00:17:55,480 --> 00:17:56,640 That's a not equal sign. 417 00:17:57,440 --> 00:18:04,800 And so now if we go ahead and we do some basic zero one one zero math, there's no carry in 418 00:18:04,800 --> 00:18:05,960 exclusive or, which is great. 419 00:18:06,060 --> 00:18:06,560 You don't have to think. 420 00:18:06,600 --> 00:18:07,800 You just do one bit at a time. 421 00:18:08,600 --> 00:18:10,100 Hardware likes one bit at a time. 422 00:18:10,160 --> 00:18:11,080 You don't have to worry about carrying. 423 00:18:11,400 --> 00:18:13,220 And so this is very, very fast. 424 00:18:13,620 --> 00:18:17,260 And this type of stuff is what you're going to see implemented in hardware most of the 425 00:18:17,260 --> 00:18:17,500 time. 426 00:18:19,540 --> 00:18:24,240 Now, if you want to encrypt it, by the way, so substitution cipher, one time pad, you 427 00:18:24,240 --> 00:18:25,580 can substitute with or without a one time pad. 428 00:18:25,660 --> 00:18:28,060 But the cool thing about a one time pad is it usually wants to throw it out. 429 00:18:28,140 --> 00:18:31,200 Now banking used to use that back in the 60s and 70s down in South America. 430 00:18:31,340 --> 00:18:33,220 But the problem was they were reusing the keys. 431 00:18:33,220 --> 00:18:36,340 Now the problem was they said if you reuse the key, what happens? 432 00:18:37,080 --> 00:18:39,740 Something plus itself adds to all zeros. 433 00:18:39,980 --> 00:18:44,220 And if I exclusive or zero to zero, I get zero. 434 00:18:44,320 --> 00:18:45,720 And if I put zero to one, I get one. 435 00:18:45,880 --> 00:18:48,460 So exclusive or-ing zero to a message gives me the message. 436 00:18:48,800 --> 00:18:51,640 And so now what was happening is you'd intercept one encrypted message. 437 00:18:51,820 --> 00:18:53,520 You'd intercept another encrypted message. 438 00:18:53,700 --> 00:18:54,740 You'd XOR them together. 439 00:18:55,000 --> 00:18:57,260 And now you have one message encrypting the other message. 440 00:18:57,520 --> 00:18:58,380 But guess what? 441 00:18:58,540 --> 00:19:00,060 Those keys have patterns. 442 00:19:00,380 --> 00:19:01,320 The letter E. 443 00:19:01,680 --> 00:19:03,520 Encrypting E is the most common thing you're going to see. 444 00:19:03,620 --> 00:19:04,820 And you're going to see spikes and valleys. 445 00:19:04,920 --> 00:19:06,100 And now you can break that apart. 446 00:19:06,420 --> 00:19:09,340 And once you crack that, you've reverse engineered it. 447 00:19:09,420 --> 00:19:10,480 Then you pull out the key. 448 00:19:10,560 --> 00:19:11,780 And now you can break every banking message. 449 00:19:11,840 --> 00:19:12,620 And you can empty the bank. 450 00:19:13,920 --> 00:19:15,780 That's why you can't use keys over like that. 451 00:19:16,560 --> 00:19:17,200 So let's think. 452 00:19:17,280 --> 00:19:18,860 If you want to win crypto contests, how do you do it? 453 00:19:19,240 --> 00:19:21,380 Helps to think like the person that developed them. 454 00:19:21,520 --> 00:19:23,480 Anybody who's doing a loss challenge this year? 455 00:19:24,140 --> 00:19:25,080 Yeah, you're all, everybody. 456 00:19:25,240 --> 00:19:26,040 Yeah, a couple guys back there. 457 00:19:26,040 --> 00:19:27,560 It's like, well, why aren't you actually hacking with the hardware? 458 00:19:27,800 --> 00:19:31,000 Did you figure out what is on the badge yet that has to do with lost? 459 00:19:31,320 --> 00:19:31,720 Yeah, okay. 460 00:19:32,580 --> 00:19:34,060 So you're trying to try to think of that guy. 461 00:19:34,100 --> 00:19:37,360 If you listen to his talk at 101 yesterday, he's got some really weird ideas. 462 00:19:38,260 --> 00:19:40,280 But it gets you thinking outside the box. 463 00:19:40,820 --> 00:19:42,680 Anybody go to the Ninja Network party last year? 464 00:19:43,100 --> 00:19:44,440 We had this really cool badge. 465 00:19:45,460 --> 00:19:47,040 And if you played around with it and read it around, 466 00:19:47,120 --> 00:19:47,980 it finally said Ninja Party. 467 00:19:48,440 --> 00:19:51,580 And if you went ahead and played with it, it was a game of Simon. 468 00:19:51,700 --> 00:19:54,020 And when you got all the way to the end, it said, don't cheat. 469 00:19:55,100 --> 00:19:56,100 Play Fair Cipher. 470 00:19:56,260 --> 00:19:57,180 Hmm, Play Fair Cipher. 471 00:19:57,860 --> 00:19:58,680 Yeah, won it. 472 00:19:58,740 --> 00:20:00,600 And that up there in the substrate 473 00:20:01,320 --> 00:20:03,220 is a particular set of paired letters. 474 00:20:03,460 --> 00:20:05,280 Looks an awful lot like a Play Fair, doesn't it? 475 00:20:05,620 --> 00:20:08,800 And now you've kind of eliminated all the other possibilities of what it might be 476 00:20:08,800 --> 00:20:11,300 and you can start cryptanalyzing that and going after it. 477 00:20:11,460 --> 00:20:13,740 Play Fair, by the way, 676 different combinations. 478 00:20:13,980 --> 00:20:15,080 You know, there's a lot of things you got to worry about 479 00:20:15,080 --> 00:20:16,440 in some of these big grid things. 480 00:20:16,760 --> 00:20:18,400 But you don't have billions of keys. 481 00:20:19,120 --> 00:20:21,500 So there's some ways you can come up with some patterns and things like that. 482 00:20:21,600 --> 00:20:24,040 And that's what was out there on that particular thing. 483 00:20:24,580 --> 00:20:26,980 Okay, so let me tell you about a couple of crypto contests that I gave you 484 00:20:26,980 --> 00:20:28,520 because I got one for this year for DEF CON. 485 00:20:28,840 --> 00:20:30,880 And if I give you an idea to get you inside my head, 486 00:20:31,320 --> 00:20:32,420 you folks who have already won my contest, 487 00:20:32,740 --> 00:20:34,940 you're going to understand a little bit about how these things are put together. 488 00:20:35,900 --> 00:20:37,740 All right, so it was just after Mardi Gras a couple of years ago. 489 00:20:37,800 --> 00:20:39,600 I went down with my wife to New Orleans 490 00:20:40,100 --> 00:20:41,360 and she's a fairly good-looking lady. 491 00:20:41,700 --> 00:20:44,260 And so, like, she didn't even have to show anything. 492 00:20:44,360 --> 00:20:45,380 They were just throwing her piles of beads. 493 00:20:45,500 --> 00:20:46,280 Well, she thought, this is great. 494 00:20:46,380 --> 00:20:47,140 Well, what am I going to do with beads? 495 00:20:47,220 --> 00:20:48,100 We got back to the hotel room 496 00:20:48,100 --> 00:20:50,000 and there's, like, this massive amount of beads. 497 00:20:50,100 --> 00:20:51,680 We have to take, like, making runs to it. 498 00:20:51,760 --> 00:20:52,920 So I was like, I want to keep them. 499 00:20:53,160 --> 00:20:53,400 Why? 500 00:20:53,800 --> 00:20:54,760 Well, I can't throw them out. 501 00:20:54,840 --> 00:20:55,240 Yes, dear. 502 00:20:56,000 --> 00:20:57,960 So I went across the street to Walgreens, like, one in the morning 503 00:20:57,960 --> 00:20:59,100 and get this, like, big box. 504 00:20:59,380 --> 00:21:00,400 Started loading up with beads. 505 00:21:00,500 --> 00:21:01,040 Well, it's getting heavy. 506 00:21:01,140 --> 00:21:03,760 You figure, what's your weight limit before they start charging you? 507 00:21:03,880 --> 00:21:04,500 50 pounds. 508 00:21:05,060 --> 00:21:06,300 So what do you got in the hotel room? 509 00:21:06,620 --> 00:21:07,160 Bathroom scale. 510 00:21:07,440 --> 00:21:09,280 Put the box on the bathroom scale and weigh it. 511 00:21:09,340 --> 00:21:09,820 What's the problem? 512 00:21:11,340 --> 00:21:12,760 Box is bigger than the bathroom scale. 513 00:21:12,800 --> 00:21:13,700 You can't see the readout. 514 00:21:13,900 --> 00:21:14,980 So how do you solve the problem? 515 00:21:15,140 --> 00:21:15,780 Think like a hacker. 516 00:21:18,200 --> 00:21:18,940 Yeah, weigh yourself. 517 00:21:19,160 --> 00:21:20,420 But is that how I did it? 518 00:21:20,420 --> 00:21:22,200 I figured rather than hold this box, trying to look, 519 00:21:22,280 --> 00:21:23,440 because then how are you going to see it, right? 520 00:21:23,580 --> 00:21:26,480 Put the garbage can on that scale, 521 00:21:26,600 --> 00:21:27,940 which weighs maybe one pound. 522 00:21:27,960 --> 00:21:29,220 Then put the box on the garbage can. 523 00:21:29,540 --> 00:21:33,300 And so I checked in with a 49.5-pound bag, a box. 524 00:21:33,700 --> 00:21:35,200 And the lady was saying, you're going to charge extra. 525 00:21:35,340 --> 00:21:35,700 She says, weigh it. 526 00:21:35,940 --> 00:21:37,600 And she's like, no, put your hand up. 527 00:21:37,740 --> 00:21:38,500 You can't charge me. 528 00:21:38,580 --> 00:21:39,260 It's exactly right. 529 00:21:39,560 --> 00:21:41,060 And so these things came home. 530 00:21:41,140 --> 00:21:42,400 I didn't want to kick around the house for about 10 years. 531 00:21:42,460 --> 00:21:44,940 So I figured, OK, a couple weeks, we've got ShmooCon coming up. 532 00:21:45,060 --> 00:21:46,680 So this is what any normal person would do, right? 533 00:21:46,740 --> 00:21:48,380 If you had a whole bunch of beads sitting in your front hall, 534 00:21:48,580 --> 00:21:49,760 you'd invent a crypto contest. 535 00:21:51,000 --> 00:21:52,780 So I also have friends with Too Much Free Time. 536 00:21:53,040 --> 00:21:55,700 And so they develop all kinds of, like, really cool graphics 537 00:21:55,700 --> 00:21:57,540 that they're handing things out and posting it on. 538 00:21:57,960 --> 00:21:58,080 This is Mardi Gras. 539 00:21:58,200 --> 00:21:58,680 That was fun. 540 00:22:00,000 --> 00:22:00,920 She's also into cats. 541 00:22:02,260 --> 00:22:03,840 And your beads break in your ciphers. 542 00:22:05,520 --> 00:22:06,380 Pretty cute, OK? 543 00:22:06,540 --> 00:22:07,600 So even cats get crypto. 544 00:22:08,440 --> 00:22:09,960 So what I did is I took all these beads. 545 00:22:10,080 --> 00:22:12,100 I randomly placed these things in the reg packets, 546 00:22:12,240 --> 00:22:13,480 because Bruce and Heidi are friends. 547 00:22:14,280 --> 00:22:16,900 And what we did is I unloaded a bunch of these things, 548 00:22:16,960 --> 00:22:17,980 purple, gold, green, and pink. 549 00:22:18,100 --> 00:22:19,560 Well, what's the three colors of Mardi Gras? 550 00:22:20,100 --> 00:22:21,020 Purple, gold, and green. 551 00:22:21,300 --> 00:22:22,300 Where does the pink come from? 552 00:22:22,420 --> 00:22:23,840 I'm not sure, but I had a bunch of them. 553 00:22:26,760 --> 00:22:27,940 So Lost was helping with that. 554 00:22:27,960 --> 00:22:28,900 This one, Mouse, was out there. 555 00:22:28,900 --> 00:22:31,060 Kay and I, we wore red beads. 556 00:22:31,240 --> 00:22:33,040 So we're like four people wearing red beads. 557 00:22:34,720 --> 00:22:36,560 Everybody else had these other different colors. 558 00:22:36,640 --> 00:22:37,340 So what do we do? 559 00:22:38,240 --> 00:22:39,420 We had extra strings of red beads, 560 00:22:39,480 --> 00:22:40,860 because if somebody solved the problem, 561 00:22:40,920 --> 00:22:41,800 we'd give them a red bead. 562 00:22:41,880 --> 00:22:42,860 Well, what does that do now? 563 00:22:43,700 --> 00:22:46,140 Now the other person who you're competing against 564 00:22:46,640 --> 00:22:47,960 now has administrator privilege. 565 00:22:48,060 --> 00:22:49,520 They look like a judge. 566 00:22:49,600 --> 00:22:50,540 They got a red bead. 567 00:22:50,940 --> 00:22:53,240 So you can walk up to somebody who's got red beads on 568 00:22:53,240 --> 00:22:54,540 and say, have I got the answer? 569 00:22:54,740 --> 00:22:56,200 And they might have the answer, but they could say, 570 00:22:56,200 --> 00:22:56,780 no. 571 00:22:57,740 --> 00:22:59,740 So you had to work around the social engineer problem. 572 00:23:00,140 --> 00:23:02,120 So then I put a whole bunch of messages in the other packets. 573 00:23:02,340 --> 00:23:03,160 These are the plain text. 574 00:23:04,380 --> 00:23:05,480 Congratulations on your opportunity 575 00:23:05,480 --> 00:23:07,040 to join our first ShmooCon Crypto Conundrum. 576 00:23:07,240 --> 00:23:08,620 And you'll obtain an important hint 577 00:23:08,620 --> 00:23:09,580 that will assist in solving the first round. 578 00:23:09,800 --> 00:23:11,240 What's unusual about that text? 579 00:23:14,660 --> 00:23:15,420 Who said that? 580 00:23:16,220 --> 00:23:17,020 Come on down. 581 00:23:17,120 --> 00:23:18,380 You got some good stuff waiting for you. 582 00:23:20,100 --> 00:23:21,380 No letter E. 583 00:23:22,900 --> 00:23:24,000 That was a little bit tough, 584 00:23:24,040 --> 00:23:25,220 so I couldn't say the word red, 585 00:23:25,220 --> 00:23:27,100 so I had to have like a string that is the color of blood. 586 00:23:27,640 --> 00:23:28,840 But it turns out, 587 00:23:28,920 --> 00:23:30,320 and those are also the same length of text, 588 00:23:31,220 --> 00:23:32,980 the plain text didn't have the letter E. 589 00:23:33,080 --> 00:23:35,020 The guy from Google who was working on this thing 590 00:23:35,020 --> 00:23:36,320 came up to me like on the second day, 591 00:23:36,400 --> 00:23:37,420 and he said, you are evil. 592 00:23:38,700 --> 00:23:40,700 Because he had tried everything he could think of, 593 00:23:40,720 --> 00:23:41,520 and he couldn't come up with it. 594 00:23:41,580 --> 00:23:41,660 Why? 595 00:23:41,800 --> 00:23:43,280 Because you're looking for where E maps to, 596 00:23:43,300 --> 00:23:44,200 and it wouldn't map to anything. 597 00:23:44,520 --> 00:23:45,920 Because what I did is I took these things, 598 00:23:46,380 --> 00:23:47,640 which is, by the way, it's called a lipogram. 599 00:23:48,080 --> 00:23:49,620 There is a book out there called Gadsby, 600 00:23:49,720 --> 00:23:52,100 which I think Lost used a couple years ago 601 00:23:52,100 --> 00:23:52,960 as one of the keys. 602 00:23:53,080 --> 00:23:54,620 It was a lookup as part of his puzzle. 603 00:23:54,620 --> 00:23:56,000 And you had to go find that book, 604 00:23:56,100 --> 00:23:58,500 and the entire story of over 50,000 words 605 00:23:58,500 --> 00:24:00,500 was written without using the letter E. 606 00:24:01,240 --> 00:24:01,860 Imagine that. 607 00:24:03,360 --> 00:24:04,480 So the padded plain text, 608 00:24:04,620 --> 00:24:04,960 we go ahead, 609 00:24:05,120 --> 00:24:06,520 and notice what I've stuck in the middle, 610 00:24:06,560 --> 00:24:07,560 that letter Z again. 611 00:24:07,680 --> 00:24:08,600 You might see that again. 612 00:24:09,220 --> 00:24:09,960 In the military, 613 00:24:10,000 --> 00:24:11,140 when the instructor said something 614 00:24:11,140 --> 00:24:11,940 would be on the final exam, 615 00:24:12,140 --> 00:24:14,360 they would kick the podium 616 00:24:14,360 --> 00:24:15,260 so you'd be aware of it. 617 00:24:16,680 --> 00:24:18,180 That's also what you found out sometimes 618 00:24:18,180 --> 00:24:19,880 in the military back in World War II. 619 00:24:20,060 --> 00:24:21,760 If you wanted breaks between words, 620 00:24:21,820 --> 00:24:22,640 you put Zs in there, 621 00:24:22,680 --> 00:24:23,960 because there weren't too many Zs out there. 622 00:24:24,000 --> 00:24:24,420 And if you had, 623 00:24:24,620 --> 00:24:25,420 go to the zoo, 624 00:24:25,540 --> 00:24:26,240 and you had ZZ, 625 00:24:26,280 --> 00:24:26,960 you'd figure it out. 626 00:24:27,400 --> 00:24:27,760 So, 627 00:24:27,860 --> 00:24:29,700 I used five Caesar ciphers. 628 00:24:31,820 --> 00:24:32,180 Seven, 629 00:24:32,300 --> 00:24:32,760 13, 630 00:24:32,960 --> 00:24:33,140 one, 631 00:24:33,220 --> 00:24:33,440 18, 632 00:24:33,500 --> 00:24:33,700 11. 633 00:24:34,580 --> 00:24:36,020 What does that sequence spell out, 634 00:24:36,080 --> 00:24:36,460 by the way, 635 00:24:36,540 --> 00:24:37,840 in terms of index from the alphabet? 636 00:24:39,620 --> 00:24:39,980 Gbark. 637 00:24:40,060 --> 00:24:40,220 Yeah, 638 00:24:40,260 --> 00:24:40,900 you already got stuff. 639 00:24:41,060 --> 00:24:42,120 You want some NSA swag though? 640 00:24:42,320 --> 00:24:42,500 No, 641 00:24:42,500 --> 00:24:42,920 you got plenty. 642 00:24:43,080 --> 00:24:43,340 Okay. 643 00:24:43,500 --> 00:24:43,780 Yeah, 644 00:24:43,800 --> 00:24:44,180 he works there. 645 00:24:45,020 --> 00:24:45,740 The pad. 646 00:24:46,940 --> 00:24:47,860 So what I did 647 00:24:47,860 --> 00:24:49,020 is just encrypt each one of them 648 00:24:49,020 --> 00:24:50,200 to this type of cipher text. 649 00:24:50,540 --> 00:24:51,400 Pretty straightforward. 650 00:24:51,640 --> 00:24:52,360 Each one, 651 00:24:55,040 --> 00:24:55,360 commonality. 652 00:24:55,560 --> 00:24:55,640 So, 653 00:24:56,120 --> 00:24:57,740 if my GMA, 654 00:24:57,920 --> 00:24:58,820 so the third one, 655 00:24:59,480 --> 00:24:59,840 if this, 656 00:24:59,900 --> 00:25:00,140 if the, 657 00:25:01,080 --> 00:25:02,560 you're gonna see a lot of repeating letters, 658 00:25:02,640 --> 00:25:03,340 but look at the, 659 00:25:04,720 --> 00:25:05,860 the stuff that you find there. 660 00:25:05,960 --> 00:25:06,360 And in fact, 661 00:25:06,360 --> 00:25:07,360 if you look at the last letter 662 00:25:07,360 --> 00:25:08,320 of each cipher text, 663 00:25:08,480 --> 00:25:09,620 because that was the letter Z, 664 00:25:09,780 --> 00:25:11,300 remember I had to pad Zs at the end 665 00:25:11,300 --> 00:25:12,180 to make them all the right length? 666 00:25:12,680 --> 00:25:14,080 That's a weakness in my system, 667 00:25:14,120 --> 00:25:15,220 because look at the last character 668 00:25:15,220 --> 00:25:15,660 in each row. 669 00:25:16,360 --> 00:25:17,300 G-M-A-R-K. 670 00:25:18,260 --> 00:25:18,580 Now, 671 00:25:18,600 --> 00:25:19,320 these are actually separate, 672 00:25:19,360 --> 00:25:20,240 so I forced people 673 00:25:20,240 --> 00:25:21,380 to actually socialize. 674 00:25:21,440 --> 00:25:21,960 You had to talk 675 00:25:21,960 --> 00:25:22,920 to at least four other people 676 00:25:22,920 --> 00:25:23,680 to go ahead 677 00:25:23,680 --> 00:25:24,220 and come up with these, 678 00:25:24,260 --> 00:25:24,600 because I wouldn't be able 679 00:25:24,600 --> 00:25:25,400 to give them all to one person. 680 00:25:25,780 --> 00:25:27,220 And they also had clues like this. 681 00:25:27,500 --> 00:25:27,920 They said, 682 00:25:27,960 --> 00:25:28,820 shmoo, shmoo, shmoo, shmoo, shmoo. 683 00:25:29,220 --> 00:25:29,500 Actually, 684 00:25:29,520 --> 00:25:29,840 wait a minute. 685 00:25:30,400 --> 00:25:30,680 Yeah, 686 00:25:30,700 --> 00:25:31,300 I guess I did put them all 687 00:25:31,300 --> 00:25:31,740 in the same thing. 688 00:25:32,240 --> 00:25:32,860 I got a drink. 689 00:25:33,800 --> 00:25:34,080 So, 690 00:25:36,400 --> 00:25:36,960 six variants 691 00:25:36,960 --> 00:25:37,760 to talk about the equate. 692 00:25:37,840 --> 00:25:38,840 And a few turns figured out. 693 00:25:38,900 --> 00:25:39,200 And by the way, 694 00:25:39,220 --> 00:25:39,560 I put little, 695 00:25:39,620 --> 00:25:39,820 like, 696 00:25:39,820 --> 00:25:40,620 sayings down there. 697 00:25:40,760 --> 00:25:40,980 Like, 698 00:25:40,980 --> 00:25:41,240 it's, 699 00:25:41,240 --> 00:25:41,920 if you do not shmoo, 700 00:25:42,020 --> 00:25:42,900 it's too bad for you. 701 00:25:43,040 --> 00:25:43,380 And then, 702 00:25:43,800 --> 00:25:44,860 the greatest good you do for another 703 00:25:44,860 --> 00:25:46,100 is not to just share your riches, 704 00:25:46,220 --> 00:25:47,660 but to reveal to him his own. 705 00:25:47,840 --> 00:25:48,640 They had nothing to do 706 00:25:48,640 --> 00:25:49,100 with the contest. 707 00:25:49,440 --> 00:25:50,480 It is amazing the way 708 00:25:54,600 --> 00:25:54,720 it works here. 709 00:25:54,720 --> 00:25:55,020 Bunnyhole. 710 00:25:55,300 --> 00:25:56,200 For stuff like that. 711 00:25:56,900 --> 00:25:57,260 So, 712 00:25:58,640 --> 00:25:59,340 you got that? 713 00:25:59,460 --> 00:26:00,060 You got this thing. 714 00:26:00,140 --> 00:26:00,280 Again, 715 00:26:00,300 --> 00:26:01,560 for my friend who has more time to do 716 00:26:01,560 --> 00:26:02,920 than she knows what she's talking about. 717 00:26:03,060 --> 00:26:03,720 Anybody can read that? 718 00:26:08,780 --> 00:26:10,120 Can you try the first line? 719 00:26:10,440 --> 00:26:10,780 Come on, 720 00:26:10,780 --> 00:26:11,680 I only got 50 minutes. 721 00:26:13,080 --> 00:26:13,800 Red E, 722 00:26:14,500 --> 00:26:15,120 four more. 723 00:26:17,400 --> 00:26:18,500 A short visit 724 00:26:19,400 --> 00:26:20,060 to see. 725 00:26:21,440 --> 00:26:22,140 In this case, 726 00:26:22,140 --> 00:26:22,680 was a hacker. 727 00:26:22,780 --> 00:26:24,000 Looks past 50. 728 00:26:24,600 --> 00:26:25,060 Talked that year. 729 00:26:25,960 --> 00:26:26,820 And it is a, 730 00:26:26,900 --> 00:26:27,260 what? 731 00:26:28,960 --> 00:26:29,320 Well, 732 00:26:29,380 --> 00:26:29,500 no, 733 00:26:29,560 --> 00:26:29,900 not quite. 734 00:26:30,840 --> 00:26:31,860 That's the word operation 735 00:26:31,860 --> 00:26:33,820 missing the letters P-A-I-N-N. 736 00:26:33,980 --> 00:26:34,860 It's a painless operation. 737 00:26:35,380 --> 00:26:35,500 So, 738 00:26:36,100 --> 00:26:36,620 this is, 739 00:26:36,640 --> 00:26:37,380 that's the way lost things. 740 00:26:37,480 --> 00:26:38,040 I don't think this way. 741 00:26:38,180 --> 00:26:38,480 But, 742 00:26:38,480 --> 00:26:39,420 so my friend did this. 743 00:26:39,500 --> 00:26:39,700 So, 744 00:26:39,700 --> 00:26:40,680 ready for that? 745 00:26:40,960 --> 00:26:41,320 And, 746 00:26:42,240 --> 00:26:43,100 here you go. 747 00:26:44,240 --> 00:26:44,780 And so, 748 00:26:44,800 --> 00:26:45,740 if you came to my talk, 749 00:26:45,840 --> 00:26:46,720 a hacker looks past 50, 750 00:26:46,860 --> 00:26:48,500 you got new clues. 751 00:26:48,600 --> 00:26:49,760 That got you from the first stage, 752 00:26:49,780 --> 00:26:50,220 second stage, 753 00:26:50,300 --> 00:26:50,680 and here we go. 754 00:26:50,820 --> 00:26:51,840 And I handed out cards. 755 00:26:51,920 --> 00:26:52,380 Admit one. 756 00:26:52,380 --> 00:26:53,600 Must be present to win. 757 00:26:53,700 --> 00:26:53,780 So, 758 00:26:53,840 --> 00:26:54,760 I used to do random drawings 759 00:26:54,760 --> 00:26:55,880 and we pick stuff like this here. 760 00:26:55,920 --> 00:26:57,340 I'm just looking for smart people, 761 00:26:57,440 --> 00:26:57,840 which is better. 762 00:26:58,100 --> 00:26:59,660 And it had at the bottom of each one, 763 00:26:59,780 --> 00:27:02,060 some little text field down there. 764 00:27:02,160 --> 00:27:02,220 Now, 765 00:27:02,240 --> 00:27:03,100 these cards are original. 766 00:27:03,200 --> 00:27:04,100 They're from my mom's attic. 767 00:27:04,260 --> 00:27:05,300 I had them from an old job deck 768 00:27:05,300 --> 00:27:06,360 from the 1970s. 769 00:27:06,960 --> 00:27:08,200 Mom never throws anything out. 770 00:27:08,440 --> 00:27:09,220 She's lived in the same home 771 00:27:09,220 --> 00:27:10,040 for over 50 years. 772 00:27:10,140 --> 00:27:10,880 Thank goodness for that. 773 00:27:10,960 --> 00:27:11,720 If you want old stuff, 774 00:27:12,040 --> 00:27:12,640 tough for you 775 00:27:12,640 --> 00:27:13,420 when she passes away 776 00:27:13,420 --> 00:27:14,160 because we got to go through 777 00:27:14,160 --> 00:27:14,660 all that attic. 778 00:27:14,760 --> 00:27:15,220 But meanwhile, 779 00:27:15,600 --> 00:27:16,540 it's great for getting old 780 00:27:16,540 --> 00:27:17,460 50 column cards. 781 00:27:18,160 --> 00:27:18,460 So, 782 00:27:18,500 --> 00:27:19,060 that was that. 783 00:27:19,060 --> 00:27:19,980 And if you look at all these things 784 00:27:19,980 --> 00:27:20,460 at the bottom, 785 00:27:20,500 --> 00:27:21,740 you'll see all these letters down there. 786 00:27:21,800 --> 00:27:22,040 PS, 787 00:27:22,120 --> 00:27:22,520 QC, 788 00:27:22,680 --> 00:27:23,000 FY. 789 00:27:23,260 --> 00:27:23,620 Well, 790 00:27:23,660 --> 00:27:24,360 we did a Playfair. 791 00:27:24,760 --> 00:27:26,020 And the Playfair cipher 792 00:27:26,560 --> 00:27:27,420 was the key. 793 00:27:27,480 --> 00:27:28,620 A hacker looks past 50. 794 00:27:28,960 --> 00:27:29,320 Ah, 795 00:27:29,380 --> 00:27:29,920 why not? 796 00:27:29,960 --> 00:27:30,700 That's the name of the talk. 797 00:27:30,840 --> 00:27:31,060 So, 798 00:27:31,100 --> 00:27:31,600 again, 799 00:27:31,660 --> 00:27:32,600 we populate the squares 800 00:27:33,140 --> 00:27:34,000 using the things 801 00:27:34,000 --> 00:27:34,840 that we talked about before. 802 00:27:36,980 --> 00:27:37,680 And there we go. 803 00:27:38,500 --> 00:27:39,520 And that then becomes 804 00:27:39,520 --> 00:27:40,200 the encryption scheme. 805 00:27:40,640 --> 00:27:41,780 We take these messages 806 00:27:41,780 --> 00:27:43,140 and these are the four messages 807 00:27:43,140 --> 00:27:44,160 that I put out there. 808 00:27:45,500 --> 00:27:46,040 Go ahead 809 00:27:46,040 --> 00:27:46,300 and email 810 00:27:46,300 --> 00:27:46,940 martygarage 811 00:27:46,940 --> 00:27:47,760 schmoo con dot info. 812 00:27:47,960 --> 00:27:48,540 Who owns 813 00:27:49,060 --> 00:27:49,440 defcon dot info? 814 00:27:50,380 --> 00:27:50,780 Me. 815 00:27:50,980 --> 00:27:51,360 Why? 816 00:27:51,680 --> 00:27:52,640 It was 99 cents 817 00:27:52,640 --> 00:27:53,400 at GoDaddy. 818 00:27:54,840 --> 00:27:55,940 Bruce didn't grab it. 819 00:27:55,960 --> 00:27:56,400 He didn't care about 820 00:27:56,400 --> 00:27:56,880 the dot info. 821 00:27:57,060 --> 00:27:57,240 So, 822 00:27:57,260 --> 00:27:57,740 why not? 823 00:27:58,020 --> 00:27:59,520 I think defcon dot info 824 00:27:59,520 --> 00:28:00,300 is probably long gone. 825 00:28:00,460 --> 00:28:00,580 But, 826 00:28:00,720 --> 00:28:01,800 you can think of these things 827 00:28:01,800 --> 00:28:02,240 early enough. 828 00:28:02,240 --> 00:28:02,780 It's first come, 829 00:28:02,820 --> 00:28:03,240 first served. 830 00:28:05,480 --> 00:28:06,380 Quick side story. 831 00:28:07,060 --> 00:28:08,340 Back in 1995, 832 00:28:09,460 --> 00:28:10,700 when I was first poking around 833 00:28:10,700 --> 00:28:11,660 on the internet domain list, 834 00:28:12,880 --> 00:28:13,780 two letter domains, 835 00:28:14,140 --> 00:28:14,980 aa.com, 836 00:28:15,040 --> 00:28:15,600 ab.com. 837 00:28:15,660 --> 00:28:16,280 How many possible 838 00:28:16,280 --> 00:28:17,000 two character domains 839 00:28:17,000 --> 00:28:17,600 are there? 840 00:28:18,280 --> 00:28:18,680 Well, 841 00:28:18,680 --> 00:28:18,740 six, 842 00:28:18,900 --> 00:28:19,040 seven, 843 00:28:19,080 --> 00:28:19,660 six of the letters 844 00:28:19,660 --> 00:28:20,400 I got thrown in the numbers, 845 00:28:20,500 --> 00:28:21,060 but who wants like, 846 00:28:21,440 --> 00:28:21,860 you know, 847 00:28:21,860 --> 00:28:22,400 zero x 848 00:28:22,400 --> 00:28:23,420 unless there's something after it. 849 00:28:23,600 --> 00:28:23,800 Well, 850 00:28:23,820 --> 00:28:24,180 it turned out 851 00:28:24,180 --> 00:28:24,820 that what percentage 852 00:28:24,820 --> 00:28:25,600 of those domain names 853 00:28:25,600 --> 00:28:26,320 were not in use? 854 00:28:26,500 --> 00:28:27,740 About 88% of them. 855 00:28:28,440 --> 00:28:29,200 It turned out 856 00:28:29,200 --> 00:28:30,000 that there were only 857 00:28:30,000 --> 00:28:31,420 about 80 of those domains 858 00:28:31,420 --> 00:28:32,000 were registered. 859 00:28:32,460 --> 00:28:32,780 And, 860 00:28:32,820 --> 00:28:33,520 it could have had any of them. 861 00:28:34,120 --> 00:28:34,440 But, 862 00:28:34,480 --> 00:28:34,980 back then, 863 00:28:35,000 --> 00:28:35,980 the ethic that we had 864 00:28:35,980 --> 00:28:36,880 was you don't take stuff 865 00:28:36,880 --> 00:28:37,380 you don't need. 866 00:28:37,480 --> 00:28:38,280 It was like seashells 867 00:28:38,280 --> 00:28:38,820 on the seashore. 868 00:28:38,860 --> 00:28:39,500 You see one you like, 869 00:28:39,520 --> 00:28:39,820 take it. 870 00:28:39,820 --> 00:28:40,600 You don't see one you don't like, 871 00:28:40,660 --> 00:28:41,040 just leave it. 872 00:28:41,460 --> 00:28:42,060 And so, 873 00:28:42,080 --> 00:28:42,960 we just kind of left them go. 874 00:28:43,960 --> 00:28:44,360 So, 875 00:28:44,380 --> 00:28:44,520 anyway, 876 00:28:46,200 --> 00:28:46,900 you can email. 877 00:28:47,520 --> 00:28:48,320 Go to a website. 878 00:28:48,820 --> 00:28:49,700 Make a phone call. 879 00:28:49,940 --> 00:28:50,480 And then, 880 00:28:50,560 --> 00:28:51,780 interact with humans 881 00:28:51,780 --> 00:28:52,660 is the scariest part of all. 882 00:28:53,260 --> 00:28:54,640 We pad that for encryption. 883 00:28:56,840 --> 00:28:57,680 Squished them down together. 884 00:28:58,040 --> 00:28:59,000 Note the presence 885 00:28:59,000 --> 00:29:00,140 of a couple x's in there, 886 00:29:00,200 --> 00:29:00,820 like shmoo-con 887 00:29:00,820 --> 00:29:01,540 on the top row. 888 00:29:01,660 --> 00:29:03,840 S-H-M-O-X-O-C-O-N. 889 00:29:04,160 --> 00:29:05,440 You only have to worry 890 00:29:05,440 --> 00:29:06,280 about the double letter 891 00:29:06,280 --> 00:29:06,980 in a Playfair 892 00:29:06,980 --> 00:29:07,860 if they happen to be 893 00:29:07,860 --> 00:29:08,380 in 894 00:29:08,380 --> 00:29:08,740 odd numbers. 895 00:29:09,240 --> 00:29:09,640 So, 896 00:29:09,660 --> 00:29:09,800 in a Playfair 897 00:29:09,820 --> 00:29:10,280 they're not even positions. 898 00:29:10,820 --> 00:29:11,180 Because, 899 00:29:11,220 --> 00:29:11,960 if they're in even odd, 900 00:29:12,060 --> 00:29:13,140 they stretch across the pair 901 00:29:13,140 --> 00:29:14,400 and they won't affect each other. 902 00:29:14,860 --> 00:29:15,040 But, 903 00:29:15,060 --> 00:29:15,580 there was an error 904 00:29:15,580 --> 00:29:16,620 that one of the teams made 905 00:29:16,620 --> 00:29:17,760 that they discounted 906 00:29:17,760 --> 00:29:18,180 the whole thing 907 00:29:18,180 --> 00:29:18,760 because they found 908 00:29:18,760 --> 00:29:19,360 some letter pairs. 909 00:29:20,360 --> 00:29:20,720 Because, 910 00:29:20,760 --> 00:29:21,260 if you go ahead 911 00:29:21,260 --> 00:29:22,260 and you encrypt it 912 00:29:22,260 --> 00:29:23,260 with the Playfair cipher, 913 00:29:23,320 --> 00:29:24,020 it looks like this. 914 00:29:24,420 --> 00:29:24,780 But, 915 00:29:24,820 --> 00:29:25,440 then you find out 916 00:29:25,440 --> 00:29:26,360 there's a bunch of letter pairs. 917 00:29:26,980 --> 00:29:28,100 If you're careful though, 918 00:29:28,120 --> 00:29:28,560 you notice that 919 00:29:28,560 --> 00:29:30,800 R-R-M-M-I-I-K-K-A-A, 920 00:29:30,880 --> 00:29:31,300 they're not part 921 00:29:31,300 --> 00:29:32,040 of the same pair. 922 00:29:32,160 --> 00:29:32,860 It's the last of one 923 00:29:32,860 --> 00:29:33,540 and the first of another. 924 00:29:33,920 --> 00:29:34,280 And, 925 00:29:34,300 --> 00:29:34,680 one team spent 926 00:29:34,680 --> 00:29:35,180 half a day, 927 00:29:39,820 --> 00:29:40,060 correctly, 928 00:29:40,440 --> 00:29:41,540 that this is going to be 929 00:29:41,540 --> 00:29:42,320 a pair of letters. 930 00:29:42,400 --> 00:29:42,560 So, 931 00:29:42,600 --> 00:29:43,060 you got to count. 932 00:29:44,340 --> 00:29:44,660 Because, 933 00:29:44,720 --> 00:29:45,300 you can't have double letters 934 00:29:45,300 --> 00:29:45,920 in the same position. 935 00:29:46,140 --> 00:29:46,860 In this case, 936 00:29:46,860 --> 00:29:47,560 it was kind of delivered 937 00:29:47,560 --> 00:29:48,060 on my part. 938 00:29:48,180 --> 00:29:48,660 You notice you throw 939 00:29:48,660 --> 00:29:49,520 little curve balls in here 940 00:29:49,520 --> 00:29:50,140 just to make it fun. 941 00:29:50,740 --> 00:29:51,220 And so, 942 00:29:51,240 --> 00:29:52,000 if you do each task, 943 00:29:52,160 --> 00:29:52,740 here's what happened. 944 00:29:52,820 --> 00:29:53,880 If you auto-responder, 945 00:29:53,880 --> 00:29:54,620 I have it set up 946 00:29:54,620 --> 00:29:56,500 from martygrachvucon.info 947 00:29:56,500 --> 00:29:57,600 and you got back 948 00:29:58,300 --> 00:29:58,860 an email. 949 00:30:00,720 --> 00:30:01,040 Tango, 950 00:30:01,120 --> 00:30:01,320 Alpha, 951 00:30:01,460 --> 00:30:01,800 Whiskey, 952 00:30:01,840 --> 00:30:02,080 Sierra, 953 00:30:02,160 --> 00:30:02,340 Alpha, 954 00:30:02,400 --> 00:30:02,620 Edge, 955 00:30:02,640 --> 00:30:02,840 Golf, 956 00:30:02,940 --> 00:30:03,180 Kilo, 957 00:30:09,820 --> 00:30:10,420 we'll be given to you. 958 00:30:10,540 --> 00:30:11,120 I think I've been reading 959 00:30:11,120 --> 00:30:11,960 Dr. Seuss recently. 960 00:30:13,400 --> 00:30:14,380 If you went to the website, 961 00:30:14,480 --> 00:30:15,140 and it turned out that 962 00:30:15,140 --> 00:30:15,720 if you went to 963 00:30:17,660 --> 00:30:18,740 the first website 964 00:30:18,740 --> 00:30:19,580 that I have, 965 00:30:19,720 --> 00:30:20,260 you couldn't traverse, 966 00:30:20,440 --> 00:30:20,600 you know, 967 00:30:20,600 --> 00:30:21,380 schmucon.info. 968 00:30:21,660 --> 00:30:22,840 That was just a subdomain 969 00:30:22,840 --> 00:30:23,140 on mine. 970 00:30:23,260 --> 00:30:24,400 You couldn't traverse 971 00:30:24,400 --> 00:30:25,460 to schmucon.info. 972 00:30:25,540 --> 00:30:26,620 You had to go up to gmark 973 00:30:26,620 --> 00:30:27,680 and back down again. 974 00:30:27,920 --> 00:30:28,740 That was a basic 975 00:30:28,740 --> 00:30:30,280 web traversal challenge. 976 00:30:30,460 --> 00:30:30,640 But, 977 00:30:30,660 --> 00:30:31,060 it was in there. 978 00:30:31,440 --> 00:30:32,180 Hats off to you. 979 00:30:32,240 --> 00:30:33,120 You solved the puzzle too. 980 00:30:33,200 --> 00:30:33,320 And, 981 00:30:33,320 --> 00:30:34,040 here's some more information. 982 00:30:34,360 --> 00:30:34,680 And, 983 00:30:34,760 --> 00:30:35,380 the third clue, 984 00:30:35,920 --> 00:30:37,060 I was working out in Hawaii 985 00:30:39,820 --> 00:30:40,020 on my cell phone. 986 00:30:40,020 --> 00:30:40,420 So, 987 00:30:40,440 --> 00:30:41,560 I just gave you a voice message. 988 00:30:41,660 --> 00:30:41,740 Well, 989 00:30:41,760 --> 00:30:43,260 if you took those first three 990 00:30:43,260 --> 00:30:43,620 together, 991 00:30:44,020 --> 00:30:45,160 and you added them all together, 992 00:30:45,460 --> 00:30:46,480 what you would get 993 00:30:46,480 --> 00:30:47,260 is 994 00:30:48,040 --> 00:30:49,360 the first three rows. 995 00:30:49,740 --> 00:30:50,140 And, 996 00:30:50,180 --> 00:30:50,440 then again, 997 00:30:50,500 --> 00:30:51,540 go column wise. 998 00:30:52,100 --> 00:30:54,020 The magic words to say 999 00:30:54,020 --> 00:30:54,780 to gmark 1000 00:30:54,780 --> 00:30:55,100 are, 1001 00:30:55,200 --> 00:30:56,280 give me white beads. 1002 00:30:56,520 --> 00:30:56,720 Well, 1003 00:30:56,800 --> 00:30:57,480 what is this 1004 00:30:58,280 --> 00:30:58,980 571428 thing? 1005 00:30:59,220 --> 00:31:00,400 That was that fourth clue. 1006 00:31:00,920 --> 00:31:02,220 Here's the fourth piece of four, 1007 00:31:02,320 --> 00:31:03,300 so you need to look no more. 1008 00:31:03,540 --> 00:31:03,940 So, 1009 00:31:03,960 --> 00:31:04,280 wait a minute. 1010 00:31:04,360 --> 00:31:04,780 This is like 1011 00:31:04,780 --> 00:31:06,080 cart before the horse. 1012 00:31:06,160 --> 00:31:06,300 No, 1013 00:31:06,320 --> 00:31:06,620 not really. 1014 00:31:06,780 --> 00:31:08,200 Because the first three rows 1015 00:31:11,160 --> 00:31:11,960 are 571428. 1016 00:31:12,140 --> 00:31:12,160 571428. 1017 00:31:12,160 --> 00:31:12,580 What's significant 1018 00:31:12,580 --> 00:31:14,180 about 571428 1019 00:31:14,180 --> 00:31:15,680 in that sequence? 1020 00:31:16,640 --> 00:31:17,040 No, 1021 00:31:17,060 --> 00:31:17,880 it's not the firing order 1022 00:31:17,880 --> 00:31:18,460 of a V6. 1023 00:31:18,600 --> 00:31:19,480 That's two extra cylinders. 1024 00:31:21,340 --> 00:31:22,140 Four sevens. 1025 00:31:23,480 --> 00:31:23,880 Yes. 1026 00:31:24,020 --> 00:31:24,420 Come on up. 1027 00:31:24,460 --> 00:31:24,800 Grab something. 1028 00:31:26,180 --> 00:31:26,580 142857. 1029 00:31:27,200 --> 00:31:27,600 142857. 1030 00:31:28,320 --> 00:31:28,720 Repeating 1031 00:31:29,520 --> 00:31:30,320 irrational number. 1032 00:31:31,760 --> 00:31:32,460 Rational number. 1033 00:31:32,540 --> 00:31:32,820 Whatever. 1034 00:31:33,500 --> 00:31:34,240 It's been a while. 1035 00:31:34,620 --> 00:31:35,020 So, 1036 00:31:35,040 --> 00:31:35,860 if you get that fourth one, 1037 00:31:36,000 --> 00:31:36,720 it gave you 1038 00:31:36,720 --> 00:31:37,940 the last set of stuff. 1039 00:31:38,020 --> 00:31:38,520 Go for it. 1040 00:31:39,380 --> 00:31:39,800 Did you get 1041 00:31:39,800 --> 00:31:40,540 this with ease 1042 00:31:40,540 --> 00:31:41,540 or use the force of a brute? 1043 00:31:41,680 --> 00:31:41,820 Why? 1044 00:31:41,940 --> 00:31:42,700 Because you could brute force 1045 00:31:42,700 --> 00:31:43,780 all six-digit combinations, 1046 00:31:44,140 --> 00:31:44,280 right? 1047 00:31:44,380 --> 00:31:44,820 And eventually, 1048 00:31:44,860 --> 00:31:45,900 you'd get an autoresponder 1049 00:31:45,900 --> 00:31:46,740 after you got hammered 1050 00:31:46,740 --> 00:31:47,440 into this poor website. 1051 00:31:47,780 --> 00:31:48,180 And so, 1052 00:31:48,200 --> 00:31:48,760 you got the information. 1053 00:31:48,960 --> 00:31:49,060 So, 1054 00:31:49,120 --> 00:31:49,800 if someone came up to me 1055 00:31:49,800 --> 00:31:49,960 and said, 1056 00:31:50,040 --> 00:31:50,760 give me white beads, 1057 00:31:51,080 --> 00:31:51,880 you got white beads. 1058 00:31:51,980 --> 00:31:52,100 Well, 1059 00:31:52,140 --> 00:31:52,980 the first team to do that, 1060 00:31:53,040 --> 00:31:53,620 I got a call from a guy 1061 00:31:53,620 --> 00:31:53,780 who says, 1062 00:31:53,860 --> 00:31:53,960 hey, 1063 00:31:53,980 --> 00:31:54,620 we solved your puzzle. 1064 00:31:54,700 --> 00:31:55,400 Could you give me white beads? 1065 00:31:55,480 --> 00:31:55,600 He said, 1066 00:31:55,640 --> 00:31:55,800 great. 1067 00:31:55,840 --> 00:31:56,040 Come on, 1068 00:31:56,040 --> 00:31:56,500 meet me in the lobby. 1069 00:31:56,880 --> 00:31:57,840 And four people come down. 1070 00:31:57,840 --> 00:31:58,580 Anybody here? 1071 00:31:59,320 --> 00:31:59,600 No, 1072 00:31:59,660 --> 00:32:00,040 they're off doing 1073 00:32:00,040 --> 00:32:00,840 the loss puzzle again. 1074 00:32:01,940 --> 00:32:02,220 So, 1075 00:32:02,220 --> 00:32:02,640 exactly, 1076 00:32:03,240 --> 00:32:03,900 Jolly and Matt 1077 00:32:03,900 --> 00:32:04,740 had all solved this thing 1078 00:32:04,740 --> 00:32:05,040 and they said, 1079 00:32:05,080 --> 00:32:05,860 now I'm up this creek 1080 00:32:05,860 --> 00:32:06,460 because I was going to give 1081 00:32:06,460 --> 00:32:07,720 one winner one round-trip ticket 1082 00:32:07,720 --> 00:32:08,440 but four people won. 1083 00:32:08,560 --> 00:32:08,700 So, 1084 00:32:08,740 --> 00:32:09,220 what should I do? 1085 00:32:10,480 --> 00:32:11,180 What would you do? 1086 00:32:12,500 --> 00:32:13,120 Give them all. 1087 00:32:14,640 --> 00:32:15,140 Why not? 1088 00:32:15,380 --> 00:32:15,640 So, 1089 00:32:15,640 --> 00:32:16,220 I gave them all to it. 1090 00:32:16,320 --> 00:32:16,480 And then, 1091 00:32:16,520 --> 00:32:17,340 they spent their time then, 1092 00:32:17,800 --> 00:32:18,540 like this year, 1093 00:32:18,580 --> 00:32:18,980 trying to solve 1094 00:32:18,980 --> 00:32:19,460 the loss puzzle. 1095 00:32:19,620 --> 00:32:19,840 So, 1096 00:32:19,840 --> 00:32:20,160 we're sitting there 1097 00:32:20,160 --> 00:32:20,980 at the closing ceremony 1098 00:32:20,980 --> 00:32:21,540 and Jolly's saying, 1099 00:32:21,640 --> 00:32:21,740 like, 1100 00:32:27,840 --> 00:32:28,860 the 2008 DEFCON puzzle 1101 00:32:28,860 --> 00:32:29,780 remains unsolved 1102 00:32:29,780 --> 00:32:30,660 because I had a DEFCON puzzle 1103 00:32:30,660 --> 00:32:31,320 that was like this. 1104 00:32:31,360 --> 00:32:31,880 That was with the cards 1105 00:32:31,880 --> 00:32:32,260 I gave out. 1106 00:32:32,640 --> 00:32:32,920 Except, 1107 00:32:33,360 --> 00:32:34,440 there's a rather smart person 1108 00:32:34,440 --> 00:32:35,340 in here who solved it. 1109 00:32:36,280 --> 00:32:36,800 There you are. 1110 00:32:38,440 --> 00:32:39,640 You don't have to identify yourself 1111 00:32:39,640 --> 00:32:40,300 if you don't want to, 1112 00:32:40,320 --> 00:32:40,640 but you could. 1113 00:32:40,920 --> 00:32:41,600 You want to stand up? 1114 00:32:42,740 --> 00:32:43,320 Somebody else wanted 1115 00:32:43,320 --> 00:32:43,760 to stand up, 1116 00:32:43,820 --> 00:32:43,940 right? 1117 00:32:46,700 --> 00:32:46,980 Going? 1118 00:32:48,160 --> 00:32:48,440 Going? 1119 00:32:48,580 --> 00:32:49,260 You don't have to do this anymore? 1120 00:32:50,240 --> 00:32:50,800 Somebody else. 1121 00:32:50,920 --> 00:32:51,080 No, 1122 00:32:51,140 --> 00:32:51,920 somebody else did not get it. 1123 00:32:52,400 --> 00:32:52,680 Oh, 1124 00:32:52,680 --> 00:32:53,420 wait a minute. 1125 00:32:56,860 --> 00:32:57,500 I'm going to let you 1126 00:32:57,840 --> 00:32:58,140 G-Mark, 1127 00:32:58,520 --> 00:32:59,440 but I've just got to say 1128 00:32:59,440 --> 00:33:00,120 that Dan Kaminsky 1129 00:33:00,120 --> 00:33:01,200 had one of the best talks 1130 00:33:01,200 --> 00:33:01,840 of all time. 1131 00:33:10,740 --> 00:33:11,480 What can I say? 1132 00:33:18,900 --> 00:33:19,540 All right, 1133 00:33:19,600 --> 00:33:20,680 I think somebody just advanced 1134 00:33:20,680 --> 00:33:21,560 when we were on the scavenger hunt. 1135 00:33:21,900 --> 00:33:22,220 So, 1136 00:33:22,220 --> 00:33:22,640 anyway, 1137 00:33:22,680 --> 00:33:23,440 this fine gentleman went ahead 1138 00:33:23,440 --> 00:33:24,060 and solved that thing, 1139 00:33:24,120 --> 00:33:24,680 so he's out here 1140 00:33:24,680 --> 00:33:25,480 on my dime as well. 1141 00:33:26,020 --> 00:33:26,200 So, 1142 00:33:26,200 --> 00:33:27,180 you can create your own crypto, 1143 00:33:27,220 --> 00:33:27,700 but be careful. 1144 00:33:27,740 --> 00:33:28,600 It's like packing a parachute. 1145 00:33:28,800 --> 00:33:29,680 Unless you know what you're doing, 1146 00:33:29,720 --> 00:33:30,480 you can really screw it up. 1147 00:33:30,820 --> 00:33:31,600 One of my first jobs, 1148 00:33:31,660 --> 00:33:32,980 when I started my business in 1988, 1149 00:33:34,160 --> 00:33:35,080 National Security Corporation 1150 00:33:35,080 --> 00:33:36,140 sounded like a pretty cool name. 1151 00:33:36,220 --> 00:33:36,380 Why? 1152 00:33:36,480 --> 00:33:36,920 I wanted to go work 1153 00:33:36,920 --> 00:33:37,900 for the National Security Agency, 1154 00:33:38,040 --> 00:33:39,060 if you heard my previous talks, 1155 00:33:39,160 --> 00:33:40,360 and found out that in the Navy, 1156 00:33:40,740 --> 00:33:41,840 I couldn't convince the detailer 1157 00:33:41,840 --> 00:33:42,240 to send me there. 1158 00:33:42,280 --> 00:33:42,520 They said, 1159 00:33:42,560 --> 00:33:43,420 the Navy has no need 1160 00:33:43,420 --> 00:33:44,200 for computer security. 1161 00:33:44,860 --> 00:33:45,980 You need to go back out to sea. 1162 00:33:46,160 --> 00:33:46,720 This is true. 1163 00:33:46,820 --> 00:33:47,160 It's 1984. 1164 00:33:47,560 --> 00:33:47,840 So, 1165 00:33:47,860 --> 00:33:48,100 I was like, 1166 00:33:48,180 --> 00:33:48,300 well, 1167 00:33:48,320 --> 00:33:48,620 what do I do? 1168 00:33:48,660 --> 00:33:49,080 I want to do this, 1169 00:33:49,080 --> 00:33:49,460 I want to do that. 1170 00:33:49,520 --> 00:33:49,700 So, 1171 00:33:49,740 --> 00:33:50,800 I left active duty, 1172 00:33:50,840 --> 00:33:51,300 went to the reserves, 1173 00:33:51,440 --> 00:33:52,580 and then decided to go ahead 1174 00:33:52,580 --> 00:33:55,300 and do security on the outside. 1175 00:33:55,540 --> 00:33:55,760 Why? 1176 00:33:56,180 --> 00:33:57,240 Because I went to the Fort Meade. 1177 00:33:57,340 --> 00:33:57,820 After three years, 1178 00:33:57,860 --> 00:33:58,720 I have to go look for a job. 1179 00:33:58,840 --> 00:33:58,960 So, 1180 00:33:59,000 --> 00:33:59,320 I couldn't work 1181 00:33:59,320 --> 00:34:00,180 for the National Security Agency, 1182 00:34:00,340 --> 00:34:00,640 so I started 1183 00:34:00,640 --> 00:34:01,680 National Security Corporation. 1184 00:34:02,280 --> 00:34:02,460 So, 1185 00:34:02,520 --> 00:34:03,600 first company I had, 1186 00:34:03,700 --> 00:34:04,680 they had some crypto. 1187 00:34:04,820 --> 00:34:05,480 And they encrypted 1188 00:34:05,480 --> 00:34:06,520 a whole big database 1189 00:34:07,720 --> 00:34:08,360 of corporations 1190 00:34:08,360 --> 00:34:09,220 around America 1191 00:34:09,220 --> 00:34:10,040 with credit histories. 1192 00:34:10,180 --> 00:34:10,620 I can't mention 1193 00:34:10,620 --> 00:34:11,480 their client name even today. 1194 00:34:11,680 --> 00:34:12,160 And they said, 1195 00:34:12,180 --> 00:34:12,480 we're going to have 1196 00:34:12,480 --> 00:34:13,840 this newfangled invention in the late 80s 1197 00:34:13,840 --> 00:34:14,940 called a CD-ROM. 1198 00:34:19,080 --> 00:34:19,220 So, 1199 00:34:19,600 --> 00:34:20,520 the entire database 1200 00:34:20,520 --> 00:34:21,600 and then creating mailing lists 1201 00:34:21,600 --> 00:34:22,320 and then doing stuff 1202 00:34:22,320 --> 00:34:23,080 because what they used to do, 1203 00:34:23,120 --> 00:34:23,440 seriously, 1204 00:34:23,640 --> 00:34:24,380 back in the 80s 1205 00:34:24,380 --> 00:34:24,780 is every year 1206 00:34:24,780 --> 00:34:25,380 this thing would come out 1207 00:34:25,380 --> 00:34:26,280 and people would hire 1208 00:34:26,280 --> 00:34:27,420 a boiler room full of people 1209 00:34:27,420 --> 00:34:27,780 just bang, 1210 00:34:27,840 --> 00:34:27,900 bang, 1211 00:34:27,940 --> 00:34:28,040 bang, 1212 00:34:28,040 --> 00:34:28,140 bang, 1213 00:34:28,220 --> 00:34:29,120 and retype that stuff in there. 1214 00:34:29,300 --> 00:34:30,160 They didn't have scanners. 1215 00:34:30,880 --> 00:34:31,120 So, 1216 00:34:31,940 --> 00:34:32,600 they want to do this. 1217 00:34:32,640 --> 00:34:32,800 I said, 1218 00:34:32,840 --> 00:34:32,980 okay, 1219 00:34:33,000 --> 00:34:33,220 fine, 1220 00:34:33,320 --> 00:34:33,820 we're going to hire you. 1221 00:34:33,840 --> 00:34:34,460 We're going to give you 80 hours 1222 00:34:34,460 --> 00:34:34,780 to go ahead 1223 00:34:34,780 --> 00:34:35,800 and prove that our crypto is good. 1224 00:34:36,140 --> 00:34:36,780 What are you going to do? 1225 00:34:36,860 --> 00:34:37,700 We'll just give you a sample of it. 1226 00:34:39,560 --> 00:34:39,800 Well, 1227 00:34:49,080 --> 00:34:49,220 I had a client 1228 00:34:49,220 --> 00:34:50,620 and he had a pretty good recovery. 1229 00:34:50,800 --> 00:34:50,880 He said, 1230 00:34:50,920 --> 00:34:51,720 Mr. Baker, 1231 00:34:51,780 --> 00:34:52,340 don't worry about it. 1232 00:34:52,340 --> 00:34:53,280 We were just checking this young man out 1233 00:34:53,280 --> 00:34:54,740 to make sure that he was actually pretty good. 1234 00:34:54,840 --> 00:34:54,940 So, 1235 00:34:54,960 --> 00:34:56,000 it turned out that he was using 1236 00:34:56,000 --> 00:34:56,780 the decoy cryptography 1237 00:34:56,780 --> 00:34:57,280 and he did very well. 1238 00:34:57,380 --> 00:34:57,520 So, 1239 00:34:57,540 --> 00:34:58,320 he's going to solve now 1240 00:34:58,320 --> 00:34:59,280 the real crypto. 1241 00:34:59,420 --> 00:34:59,760 And by the way, 1242 00:34:59,760 --> 00:34:59,920 kid, 1243 00:34:59,940 --> 00:35:00,860 you don't get any more time. 1244 00:35:01,680 --> 00:35:02,000 So, 1245 00:35:02,120 --> 00:35:03,460 in the remaining 40 hours, 1246 00:35:03,520 --> 00:35:04,500 I cracked the other crypto. 1247 00:35:05,800 --> 00:35:07,700 And I assembled a mailing list 1248 00:35:07,700 --> 00:35:09,460 which is their greatest nightmare. 1249 00:35:09,720 --> 00:35:10,960 And I presented that to them. 1250 00:35:11,240 --> 00:35:11,880 And I said, 1251 00:35:11,940 --> 00:35:12,040 you know, 1252 00:35:12,100 --> 00:35:12,820 you really should use something 1253 00:35:12,820 --> 00:35:13,880 called the data encryption standard 1254 00:35:13,880 --> 00:35:14,580 because back then 1255 00:35:14,580 --> 00:35:14,980 it was only, 1256 00:35:19,080 --> 00:35:19,240 by the way, 1257 00:35:19,300 --> 00:35:19,860 you just embarrassed me 1258 00:35:19,860 --> 00:35:20,680 a second time before my boss. 1259 00:35:20,780 --> 00:35:20,880 So, 1260 00:35:20,900 --> 00:35:21,460 we'll figure it out ourselves. 1261 00:35:21,760 --> 00:35:21,980 So, 1262 00:35:22,000 --> 00:35:22,460 I went back there 1263 00:35:22,780 --> 00:35:23,400 a little bit later, 1264 00:35:23,800 --> 00:35:24,440 like a month later, 1265 00:35:24,580 --> 00:35:25,260 trying to do a sales call. 1266 00:35:25,400 --> 00:35:25,560 It's like, 1267 00:35:25,560 --> 00:35:25,660 well, 1268 00:35:25,680 --> 00:35:25,940 how's it going? 1269 00:35:26,000 --> 00:35:26,120 Oh, 1270 00:35:26,120 --> 00:35:26,220 yeah, 1271 00:35:26,220 --> 00:35:26,740 we got this code. 1272 00:35:26,800 --> 00:35:27,440 We're implementing this. 1273 00:35:27,460 --> 00:35:27,600 It's great. 1274 00:35:27,680 --> 00:35:28,280 Where are you storing the key? 1275 00:35:28,460 --> 00:35:28,600 Ah, 1276 00:35:28,660 --> 00:35:29,200 we figured that out. 1277 00:35:29,240 --> 00:35:31,180 We got like a 4,000 character block. 1278 00:35:31,300 --> 00:35:32,260 We just stored it in there somewhere. 1279 00:35:32,360 --> 00:35:32,880 No one's going to find it. 1280 00:35:33,180 --> 00:35:33,520 I said, 1281 00:35:33,540 --> 00:35:34,620 you ever hear anything about bit parity? 1282 00:35:35,600 --> 00:35:36,260 Because DES keys 1283 00:35:36,260 --> 00:35:37,540 have that parity bit in there. 1284 00:35:37,620 --> 00:35:37,740 So, 1285 00:35:37,760 --> 00:35:39,460 I have to look for eight bytes 1286 00:35:49,080 --> 00:35:49,400 of 16, 1287 00:35:49,640 --> 00:35:50,400 expected value eight. 1288 00:35:50,440 --> 00:35:50,820 Eight tries, 1289 00:35:50,920 --> 00:35:51,920 I'll crack your crypto every time. 1290 00:35:52,960 --> 00:35:53,780 Sure you don't want some help. 1291 00:35:53,840 --> 00:35:53,940 No, 1292 00:35:53,960 --> 00:35:54,060 no, 1293 00:35:54,060 --> 00:35:54,140 no, 1294 00:35:54,180 --> 00:35:54,560 we got it. 1295 00:35:55,200 --> 00:35:55,480 So, 1296 00:35:55,500 --> 00:35:55,940 best I know, 1297 00:35:56,000 --> 00:35:56,580 they're still doing that. 1298 00:35:58,080 --> 00:35:58,360 So, 1299 00:35:58,380 --> 00:35:59,220 ShmooCon last year 1300 00:35:59,860 --> 00:36:01,120 went over to Bruce and Heidi's house 1301 00:36:02,280 --> 00:36:03,600 and if you went to there, 1302 00:36:03,760 --> 00:36:04,000 I don't know, 1303 00:36:04,040 --> 00:36:05,500 anybody do the East Coast trips? 1304 00:36:06,260 --> 00:36:06,620 East Coast. 1305 00:36:06,700 --> 00:36:07,340 East Coast. 1306 00:36:07,440 --> 00:36:07,860 All right. 1307 00:36:07,940 --> 00:36:08,160 Yeah, 1308 00:36:08,180 --> 00:36:08,780 I got my goon. 1309 00:36:09,160 --> 00:36:09,440 So, 1310 00:36:09,500 --> 00:36:09,800 that's good. 1311 00:36:10,000 --> 00:36:10,280 So, 1312 00:36:10,300 --> 00:36:10,400 anyway, 1313 00:36:10,480 --> 00:36:11,880 put Morse code on the rim 1314 00:36:11,880 --> 00:36:12,720 of each of the badges 1315 00:36:12,720 --> 00:36:14,160 as well as a barcode 1316 00:36:19,080 --> 00:36:19,200 would be cool 1317 00:36:19,200 --> 00:36:20,240 and so they figured, 1318 00:36:20,300 --> 00:36:21,360 why don't we do all these barcodes 1319 00:36:21,360 --> 00:36:22,720 and so everything had a barcode. 1320 00:36:22,980 --> 00:36:23,200 So, 1321 00:36:23,260 --> 00:36:23,820 the problem is 1322 00:36:23,820 --> 00:36:24,760 because it was printed 1323 00:36:24,760 --> 00:36:25,640 at an angle 1324 00:36:25,640 --> 00:36:26,520 and it's a digital image, 1325 00:36:26,700 --> 00:36:27,620 guess what happened to the barcodes? 1326 00:36:29,740 --> 00:36:31,480 And most of the really high-res scanners 1327 00:36:31,480 --> 00:36:32,280 wouldn't figure it out. 1328 00:36:32,420 --> 00:36:33,600 If you had a low-res scanner, 1329 00:36:33,660 --> 00:36:34,520 it scanned very nicely. 1330 00:36:34,740 --> 00:36:36,040 But if you crack the Morse code 1331 00:36:36,400 --> 00:36:37,380 and that little red X, 1332 00:36:37,460 --> 00:36:37,860 by the way, 1333 00:36:37,900 --> 00:36:38,500 I made a mistake. 1334 00:36:39,060 --> 00:36:39,820 Nobody caught it 1335 00:36:39,820 --> 00:36:40,620 but I didn't eventually 1336 00:36:40,620 --> 00:36:41,200 but it was too late, 1337 00:36:41,260 --> 00:36:41,920 the badges got printed. 1338 00:36:42,120 --> 00:36:42,320 Actually, 1339 00:36:42,340 --> 00:36:43,080 somebody did catch that. 1340 00:36:43,920 --> 00:36:44,900 This was the left border, 1341 00:36:44,980 --> 00:36:45,660 that was the right border 1342 00:36:45,660 --> 00:36:46,280 and that's the barcode. 1343 00:36:46,280 --> 00:36:46,980 Who here is good 1344 00:36:46,980 --> 00:36:47,900 at reading barcodes? 1345 00:36:51,360 --> 00:36:52,900 What does that first barcode say? 1346 00:36:54,860 --> 00:36:56,040 Anybody look at the program 1347 00:36:56,040 --> 00:36:57,120 and look at the CD? 1348 00:36:59,080 --> 00:36:59,520 Well, 1349 00:36:59,640 --> 00:37:00,140 what it does, 1350 00:37:00,220 --> 00:37:01,180 I'll spare you the work, 1351 00:37:01,300 --> 00:37:01,480 is, 1352 00:37:02,140 --> 00:37:03,840 this is what it wrote into. 1353 00:37:05,020 --> 00:37:05,460 So, 1354 00:37:05,480 --> 00:37:05,780 you had, 1355 00:37:06,340 --> 00:37:07,460 left border was 1356 00:37:07,460 --> 00:37:08,260 Mooseltoe, 1357 00:37:08,480 --> 00:37:11,220 and then Moosel Defense 1358 00:37:11,220 --> 00:37:12,440 and Chocolate Moose 1359 00:37:12,440 --> 00:37:13,360 and Moosketeers 1360 00:37:13,360 --> 00:37:14,860 and Room with a Moose 1361 00:37:14,860 --> 00:37:15,660 and Be Anonymous. 1362 00:37:16,660 --> 00:37:17,200 Moosey Fate 1363 00:37:17,200 --> 00:37:17,980 and Moose Nugget 1364 00:37:17,980 --> 00:37:18,960 and these barcodes. 1365 00:37:19,160 --> 00:37:19,460 Well, 1366 00:37:19,520 --> 00:37:20,560 the first column looks like what? 1367 00:37:21,440 --> 00:37:21,840 Well, 1368 00:37:21,900 --> 00:37:22,480 one through eight. 1369 00:37:22,580 --> 00:37:23,660 Helps you get them in order 1370 00:37:23,660 --> 00:37:24,700 just in case you can't. 1371 00:37:24,720 --> 00:37:25,920 How many possible orders are there 1372 00:37:25,920 --> 00:37:26,700 of eight different badges 1373 00:37:26,700 --> 00:37:27,440 if you didn't have that? 1374 00:37:33,020 --> 00:37:34,360 How many possible ways 1375 00:37:34,360 --> 00:37:35,340 can you arrange eight things? 1376 00:37:36,000 --> 00:37:36,800 Eight factorial. 1377 00:37:37,240 --> 00:37:38,080 Not eight factorial. 1378 00:37:38,960 --> 00:37:39,360 Sixty. 1379 00:37:40,200 --> 00:37:41,100 How about two to the eighth? 1380 00:37:42,080 --> 00:37:42,480 No, 1381 00:37:42,520 --> 00:37:42,640 two to the eighth. 1382 00:37:45,540 --> 00:37:45,940 No, 1383 00:37:46,280 --> 00:37:46,860 I'll just go shwag for you. 1384 00:37:47,380 --> 00:37:49,440 And these things are actually legitimate check sums 1385 00:37:49,440 --> 00:37:50,440 from the barcode, 1386 00:37:50,500 --> 00:37:51,260 but what's that in the middle? 1387 00:37:51,560 --> 00:37:52,260 What's this one, 1388 00:37:52,260 --> 00:37:52,600 one, 1389 00:37:52,640 --> 00:37:53,060 two, 1390 00:37:53,180 --> 00:37:53,420 three, 1391 00:37:53,460 --> 00:37:53,880 five, 1392 00:37:54,000 --> 00:37:54,180 eight, 1393 00:37:54,180 --> 00:37:54,320 one, 1394 00:37:54,360 --> 00:37:54,500 three, 1395 00:37:54,560 --> 00:37:54,660 two, 1396 00:37:54,700 --> 00:37:54,820 one? 1397 00:37:54,900 --> 00:37:55,360 What's that look like? 1398 00:37:56,920 --> 00:37:57,240 Fibonacci. 1399 00:37:57,320 --> 00:37:58,140 So many people said that. 1400 00:37:58,200 --> 00:37:59,240 I don't have enough shwag for you. 1401 00:37:59,300 --> 00:37:59,480 So. 1402 00:38:01,520 --> 00:38:02,280 Somebody raise hands. 1403 00:38:02,400 --> 00:38:03,420 I'll throw it in the general direction. 1404 00:38:03,820 --> 00:38:04,760 If your hand's not up, 1405 00:38:04,800 --> 00:38:05,260 don't keep it. 1406 00:38:06,420 --> 00:38:06,900 All right. 1407 00:38:08,260 --> 00:38:08,900 Fibonacci Sequence. 1408 00:38:08,960 --> 00:38:09,240 What's unique 1409 00:38:09,240 --> 00:38:10,800 about the Fibonacci Sequence 1410 00:38:11,980 --> 00:38:13,520 for those who didn't study math 1411 00:38:13,520 --> 00:38:14,180 or were asleep in it? 1412 00:38:16,720 --> 00:38:22,000 is two, plus one is three, plus two is five, plus three is eight, plus five and eight are 1413 00:38:22,000 --> 00:38:24,840 thirteen, eight and thirteen are twenty-one, and so on, and it builds up, and there's lots 1414 00:38:24,840 --> 00:38:28,360 of different things you can do with that. But it tells you something, that there ought 1415 00:38:28,360 --> 00:38:32,780 to be something going on in there. So if we look at the table of values that I created, 1416 00:38:32,820 --> 00:38:36,360 and we just go ahead and we transcribe all eight badges, again, note the common element. 1417 00:38:36,500 --> 00:38:39,220 You've got to socialize here. You have to roll around and look at other people's badges. 1418 00:38:40,540 --> 00:38:42,980 And you get people coming in and staring at your chest, and it's like, are you looking 1419 00:38:42,980 --> 00:38:47,680 at my badge or what? Well, okay. And you end up with all these different combinations. 1420 00:38:48,000 --> 00:38:50,840 But what's this stuff on the right? Well, it's just padding, right? It doesn't matter. 1421 00:38:52,160 --> 00:38:54,980 But, look, there's G-Mark. But guess who else showed up in here? 1422 00:38:59,280 --> 00:39:05,420 That was not planned, honestly. That just, that came up and it's like, oh, wow, this 1423 00:39:05,420 --> 00:39:11,600 is pretty neat. It's a sign. It's a great puzzle. And, yeah, so that, he appeared in 1424 00:39:11,600 --> 00:39:12,860 the middle of my crypto puzzle. 1425 00:39:14,200 --> 00:39:23,980 So what we had at the end is like the telomeres. What's a telomere? Enter your DNA. That's 1426 00:39:23,980 --> 00:39:27,520 all the stuff that when the telomere starts to unravel because it's like the padding 1427 00:39:27,520 --> 00:39:32,860 at the end, it's a slack space in your file. Telomere is gone. What happens? Well, not 1428 00:39:32,860 --> 00:39:37,060 die immediately. You start to reproduce your cells incorrectly. They turn into cancer cells. 1429 00:39:37,280 --> 00:39:41,000 They get bigger. Then you die. So if you keep your telomeres long, you can live a lot longer. 1430 00:39:41,100 --> 00:39:41,860 That's the current theory. 1431 00:39:42,980 --> 00:39:45,940 Looking left to right on these telomeres, there's some stuff in there. I've had Bruce 1432 00:39:45,940 --> 00:39:49,200 and Heidi and I put an X and O in there, but I spelled Heidi's name wrong. I didn't have 1433 00:39:49,200 --> 00:39:53,360 to, but I did. It was stupid. And so then there's things that are left. How many letters 1434 00:39:53,360 --> 00:39:55,040 are left? Who's good at counting? 1435 00:40:01,640 --> 00:40:06,740 Sixteen letters are left. And how could that be significant? I don't know. Let's go back 1436 00:40:06,740 --> 00:40:10,780 here. How many columns have I got? Sixteen columns. What am I going to do with those 1437 00:40:10,780 --> 00:40:11,680 Fibonacci numbers? 1438 00:40:13,720 --> 00:40:15,140 Maybe they're offsets. 1439 00:40:19,400 --> 00:40:23,600 Think of a shift register. It's the first eight terms. There are eight badges. There 1440 00:40:23,600 --> 00:40:27,540 are eight indices. What to do with them? Again, a lot of commonality. When you see 1441 00:40:27,540 --> 00:40:31,480 the same numbers show up over and over again, it's usually not a coincidence. The only coincidence 1442 00:40:31,480 --> 00:40:36,640 that ever came in here was the appearance of Jesus in my puzzle. So what we do is we 1443 00:40:36,640 --> 00:40:40,420 take these things and let's start shifting them. The first row, we'll leave 1, 1, 2, 1444 00:40:40,540 --> 00:40:42,880 3, 5, 8, 13, and 21. 1445 00:40:42,980 --> 00:40:48,560 And if we have that as a starting position up top, and then modulo 16, so 21 becomes 1446 00:40:48,560 --> 00:40:54,500 moderator mod 16. Yep, that's five. And we shift these things over a little bit, and 1447 00:40:54,500 --> 00:41:01,720 this guy wraps all the way around and then you get this. And now, if we take out the 1448 00:41:01,720 --> 00:41:09,600 G mark, and then Bruce and Heidi, you see one extra letter per column. Why do you think 1449 00:41:09,600 --> 00:41:12,960 that just happened to distribute perfectly into 1, E, F, L, 6, 8, 8, 9, 10? And me and 1450 00:41:12,960 --> 00:41:18,740 per column because they probably needed something to get there right each column 1451 00:41:18,740 --> 00:41:24,180 gets a spare letter so what do you think I might do with a column come on this is 1452 00:41:24,180 --> 00:41:31,720 some goodies up here anyone Bueller Bueller anyone as a pattern but it's 1453 00:41:31,720 --> 00:41:36,000 pad I already pad that's what do I do with it now that's padded come on you 1454 00:41:36,000 --> 00:41:40,620 guys got a lot of in crypto puzzles you gotta think like a cryptographer oh it's 1455 00:41:40,620 --> 00:41:43,920 they already aligned we already realign them we padded it and we're ready to go 1456 00:41:43,920 --> 00:41:52,460 ahead and yeah solve it okay give me $20 that's a negative puzzle 1457 00:41:55,100 --> 00:41:59,280 steganography no it's not steganography we go ahead we turn them into numbers so 1458 00:41:59,280 --> 00:42:04,260 we can then do what to the numbers add them together who said that all right 1459 00:42:04,260 --> 00:42:07,880 come on up and help yourself to some really cool NSA swag because letters 1460 00:42:07,880 --> 00:42:10,540 don't add very well in your head but numbers add pretty nice 1461 00:42:10,540 --> 00:42:16,180 nicely and so if we add by column what do you think we get well we get big 1462 00:42:16,180 --> 00:42:28,360 numbers like these have problems making decisions well yes or no okay so we add 1463 00:42:28,360 --> 00:42:30,800 up all these columns we get 16 different columns we get all these answers well 1464 00:42:30,800 --> 00:42:34,240 what do we do with this sum they're too big what's the hundred and thirteenth 1465 00:42:34,240 --> 00:42:40,360 letter of the alphabet we don't have one so what do you think we do with them rock 1466 00:42:40,540 --> 00:42:46,880 26 my 26 them and now we go ahead and get these numbers all right what do we 1467 00:42:46,880 --> 00:42:52,260 do with those numbers turn them back into letters wow we're doing great okay 1468 00:42:52,260 --> 00:43:02,920 this is like a really tough code so take all those numbers terminal letters 1469 00:43:03,780 --> 00:43:09,780 and this became the final pig Latin puzzle they're the person who came up 1470 00:43:09,780 --> 00:43:10,300 with a solution 1471 00:43:10,540 --> 00:43:16,440 they won a round-trip ticket to come out here. By the way, the very lame ShmooCon 1472 00:43:16,440 --> 00:43:20,660 badge puzzle, which was weird because it involved like a PDP-8 paper tape punch 1473 00:43:20,660 --> 00:43:24,100 and you had to assemble it and you ran the program on a PDP-8 simulator, you had 1474 00:43:24,100 --> 00:43:27,740 to take the output run it through like some enigma simulator and then you got 1475 00:43:27,740 --> 00:43:32,540 some answer and they gave you a 8 gig memory stick. It's like, dude, do my puzzles, 1476 00:43:32,620 --> 00:43:38,020 they pay better. Who kind of sick mind, this was at Bruce and Heidi's paper, 1477 00:43:38,020 --> 00:43:42,160 squared paper here. Actually they didn't have any, asked if they had any graph paper, he 1478 00:43:42,160 --> 00:43:48,620 went out and he downloaded graph paper off the internet. And that's what we get. 1479 00:43:48,780 --> 00:43:55,120 So that's coming up with the puzzle, there's the original notes. It's not too 1480 00:43:55,120 --> 00:43:57,160 tough, but you want to make it interesting, you want to put enough phases 1481 00:43:57,160 --> 00:44:00,860 and stages in there and things like that. So anyway, the same sick mind that came 1482 00:44:00,860 --> 00:44:04,540 up with that, came up with this one. Today's puzzle for today, tomorrow and 1483 00:44:04,540 --> 00:44:07,920 Sunday, to see if you can win it. It's a DEFCON level challenge. 1484 00:44:07,940 --> 00:44:08,000 So anyway, the same sick mind that came up with that, came up with this one. Today's puzzle for today, tomorrow and Sunday, to see if you can win it. It's a DEFCON level challenge. 1485 00:44:08,000 --> 00:44:08,020 So anyway, the same sick mind that came up with that, came up with this one. Today's puzzle for today, tomorrow and Sunday, to see if you can win it. It's a DEFCON level challenge. 1486 00:44:08,020 --> 00:44:10,740 But it's a good one, it's an easy one and you know as you make progress because 1487 00:44:10,740 --> 00:44:14,100 all of a sudden, like a tumbler, a click it unlocks. It's not like you have to get 1488 00:44:14,100 --> 00:44:20,200 all the pins before all of a sudden you figure it out, like my ninja badge. But 1489 00:44:22,040 --> 00:44:25,860 you'll get there from here. And so here's the first important hint, look for 1490 00:44:25,860 --> 00:44:32,140 gold on the DCCD. I think everybody knows what I'm talking about, right? What's a 1491 00:44:32,140 --> 00:44:36,200 DCCD? Anyone? 1492 00:44:36,200 --> 00:44:44,260 Anyone? All right, good, so you're not asleep. I got mine on here somewhere. So 1493 00:44:44,260 --> 00:44:49,160 look for gold on it. That'll get you going. I'm going first, you don't have a 1494 00:44:49,160 --> 00:44:52,860 laptop, that's a little bit of a tough puzzle, but anyway, I'm sure you could 1495 00:44:52,860 --> 00:44:55,280 borrow one. Don't they have the hotel, the little lobby where you can go ahead 1496 00:44:55,280 --> 00:44:57,480 and use your computer to book things like that? They don't really care if you put a 1497 00:44:57,480 --> 00:45:00,340 DEFCON CD in there. But what I am doing is I'm going to go ahead and start 1498 00:45:00,340 --> 00:45:03,980 posting clues on Twitter. So G under bar mark, by the way, if anybody can get the 1499 00:45:03,980 --> 00:45:06,000 guy in Japan who owns G mark to give me his 1500 00:45:06,000 --> 00:45:06,180 CD, I'm going to go ahead and start posting clues on Twitter. So G under bar 1501 00:45:06,200 --> 00:45:06,320 mark, by the way, if anybody can get the guy in Japan who owns G mark to give me 1502 00:45:06,320 --> 00:45:09,600 his Twitter account without getting me in legal trouble, let me know. I'll be 1503 00:45:09,600 --> 00:45:12,580 very thankful for it, but there's some guy who just keeps tweeting over there 1504 00:45:12,580 --> 00:45:16,000 and he doesn't want to swap out accounts. But follow me at G under bar 1505 00:45:16,000 --> 00:45:19,060 mark and I'll go ahead and give you clues for this. Quag Con, anybody go to 1506 00:45:19,060 --> 00:45:23,060 that? Up in Rhode Island. I didn't go to it, I couldn't make it, I was triple 1507 00:45:23,060 --> 00:45:26,960 booked that weekend. So I came with a puzzle for him. Figure Rhode Island, a lot 1508 00:45:26,960 --> 00:45:33,220 of water, nautical flags, Navy guys. Navy puzzle! Anybody know, read signs, 1509 00:45:33,520 --> 00:45:36,040 read flags? That major diagonal left to right, 1510 00:45:36,040 --> 00:45:41,080 on the left, what do you think that spells? Take a guess. No, it's nine letters 1511 00:45:41,080 --> 00:45:50,200 long and the diagonal. Drink. Q U A H O G C O N. Quag Con, around here and around 1512 00:45:50,200 --> 00:45:53,520 there. And on the back page of the program you had all those different flags. Well, 1513 00:45:54,020 --> 00:45:57,720 what am I going to do with the stuff on the left? How does that help solve the 1514 00:45:57,720 --> 00:46:05,060 thing on the right? Okay, I turn the flags into letters and then what do I do? 1515 00:46:06,400 --> 00:46:10,380 Turn them into numbers and then what do I do? I want to add them because I got a 1516 00:46:10,380 --> 00:46:14,000 lot of blank spaces. Don't you ever read the paper? What do you do with the 1517 00:46:14,000 --> 00:46:17,340 nine-by-nine grid when you've got some spaces with numbers and some don't have 1518 00:46:17,340 --> 00:46:21,120 numbers? Oh, wow, how about that? Then what happens if you think you add those 1519 00:46:21,120 --> 00:46:25,760 two together? You get a message. See, it's pretty easy. By the way, nobody got it at 1520 00:46:25,760 --> 00:46:29,940 the con. Somebody had to solve it. They raced against Dave at home. Where are you? 1521 00:46:30,000 --> 00:46:34,400 Over there. Yeah, this guy sitting home said, it took me an extra hour, I had to go feed the baby. 1522 00:46:34,400 --> 00:46:38,440 It's like, lame, but he got it. So, these things are a lot of fun. ShmooCon this year. 1523 00:46:38,540 --> 00:46:43,040 Here's what we did. Lots of badges. Anybody went to ShmooCon? You saw these four tuples 1524 00:46:43,040 --> 00:46:47,280 of numbers. Up to six decimal points, six decimal points, integer, integer. What do 1525 00:46:47,280 --> 00:46:52,900 you think these might be? How often do you see numbers to six decimal points? What do 1526 00:46:52,900 --> 00:46:58,360 you think that might be? Coordinates, right. What kind of coordinates? Yeah, Latin long, 1527 00:46:58,440 --> 00:47:04,040 GPS. So, you take that. What about the next one? Three, four, five, one, one, four. 1528 00:47:04,400 --> 00:47:09,240 What could those possibly be? It could be area codes, but one, one, four is not an area code, 1529 00:47:09,320 --> 00:47:15,160 so drink. Could be flight number, room number. It could also be what? Direction. Yeah, exactly. 1530 00:47:15,340 --> 00:47:20,680 A compass direction. The last one is, well, the distance in miles, nautical miles. Fell off the 1531 00:47:20,680 --> 00:47:23,740 end of the map here. And so, it turns out that if you go ahead and you take all these things and 1532 00:47:23,740 --> 00:47:28,740 you look at the Latin long, you happen to find, doing Google Maps, an airport at each of those 1533 00:47:28,740 --> 00:47:33,340 locations. And if you travel in the direction and speed from that to the next airport, it takes you 1534 00:47:33,340 --> 00:47:34,380 to the next airport. So, it helps you a lot. It helps you a lot. It helps you a lot. It helps you a lot. 1535 00:47:34,380 --> 00:47:37,320 It helps you get them in the right order. And if you look at the three-letter airport codes, 1536 00:47:37,460 --> 00:47:40,520 you string it all together, it makes a message. And so, you win. So, you don't have to go yet 1537 00:47:40,520 --> 00:47:44,180 because we got two more minutes and we'll get you out of here on time. So, anyway, I'm going 1538 00:47:44,180 --> 00:47:46,680 to be here. I'll answer questions for you for the next couple of minutes. Get ready for the next 1539 00:47:46,680 --> 00:47:51,200 one. But I want to thank you for Tales for the Crypto. Go follow me at G under bar mark. Basic 1540 00:47:51,200 --> 00:47:56,940 maneuvers are all here. Look for gold on the DCCD and go ahead and win some of my plane tickets, 1541 00:47:56,980 --> 00:48:00,000 just like you can win Ben Stein's money. Thank you very much. Hope you have a great time. 1542 00:48:04,380 --> 00:48:04,560 Thank you.