1 00:00:00,680 --> 00:00:01,520 Hello, everybody. 2 00:00:03,000 --> 00:00:03,400 Hi. 3 00:00:05,240 --> 00:00:06,540 So this is the first time... 4 00:00:06,540 --> 00:00:07,800 Hold on, I got my mic straight. 5 00:00:07,920 --> 00:00:08,240 Just a sec. 6 00:00:10,080 --> 00:00:12,400 My first time speaking in front of security folks. 7 00:00:12,660 --> 00:00:16,240 Usually I talk about my stuff in front of Ruby on Rails programmers. 8 00:00:16,940 --> 00:00:17,340 So... 9 00:00:18,720 --> 00:00:19,560 Oh, no. 10 00:00:20,240 --> 00:00:21,900 No, okay, who hates Ruby on Rails? 11 00:00:22,000 --> 00:00:22,400 Raise your hand. 12 00:00:22,880 --> 00:00:25,300 Who thinks Ruby on Rails stole your Java lunch? 13 00:00:26,720 --> 00:00:27,440 Oh, no. 14 00:00:28,200 --> 00:00:30,220 I hate to tell you, but Sun took that 15 00:00:30,660 --> 00:00:32,440 by making it very big and hard to eat. 16 00:00:34,020 --> 00:00:34,840 Just the Ruby part? 17 00:00:35,000 --> 00:00:35,140 Yeah. 18 00:00:36,480 --> 00:00:37,720 So, a bit about me. 19 00:00:38,040 --> 00:00:39,560 How many people actually know who I am? 20 00:00:39,840 --> 00:00:40,800 I'm, like, sort of famous. 21 00:00:43,880 --> 00:00:44,500 I am. 22 00:00:44,720 --> 00:00:45,220 I'm serious. 23 00:00:45,460 --> 00:00:46,400 Don't laugh at me, dude. 24 00:00:47,800 --> 00:00:48,280 Say again? 25 00:00:49,440 --> 00:00:49,800 Maybe. 26 00:00:49,960 --> 00:00:51,160 Actually, I've given my autograph out. 27 00:00:51,280 --> 00:00:51,420 Yeah. 28 00:00:51,720 --> 00:00:52,640 I've signed a boob. 29 00:00:52,660 --> 00:00:53,420 Have you signed a boob? 30 00:00:54,180 --> 00:00:54,820 Oh, okay. 31 00:00:56,880 --> 00:00:57,240 No. 32 00:00:57,440 --> 00:00:58,920 Okay, so, I'm a programmer 33 00:00:58,920 --> 00:01:01,640 and basically got into the Ruby on Rails stuff 34 00:01:01,640 --> 00:01:03,580 most recently and wrote a web server called Mongrel. 35 00:01:03,720 --> 00:01:06,100 It's a really tiny little Ruby on Rails web server. 36 00:01:06,780 --> 00:01:09,020 There's some people whose entire companies are built on that, 37 00:01:09,120 --> 00:01:10,360 so they're going to be really pissed off 38 00:01:10,360 --> 00:01:11,640 when I change the license to commercial 39 00:01:11,640 --> 00:01:12,700 and make them pay me. 40 00:01:13,900 --> 00:01:14,440 Ha, ha, ha. 41 00:01:14,880 --> 00:01:15,900 No, I won't do that. 42 00:01:15,980 --> 00:01:16,240 I'm sorry. 43 00:01:17,340 --> 00:01:18,280 No, it's totally free, 44 00:01:18,420 --> 00:01:20,020 and it was a web server that I wrote 45 00:01:20,020 --> 00:01:21,020 maybe about a year and a half ago, 46 00:01:21,100 --> 00:01:23,380 so that's kind of where I got a little bit of my fame. 47 00:01:23,560 --> 00:01:24,620 And then also, since then, 48 00:01:24,660 --> 00:01:26,020 basically just speaking and talking 49 00:01:26,020 --> 00:01:26,460 and being... 50 00:01:27,440 --> 00:01:28,920 sort of funny and obnoxious. 51 00:01:29,860 --> 00:01:32,040 And I have a laptop that has a screensaver, 52 00:01:32,160 --> 00:01:33,700 so Legos will see this. 53 00:01:34,240 --> 00:01:35,840 Anyways, so my talk today, though, 54 00:01:35,880 --> 00:01:37,600 is about something that's not Ruby on Rails, 55 00:01:37,840 --> 00:01:38,900 but there is some Ruby in it. 56 00:01:39,160 --> 00:01:42,260 And my talk is about social stuff, 57 00:01:42,500 --> 00:01:43,300 not tech stuff. 58 00:01:43,600 --> 00:01:45,740 So when I start talking about this, 59 00:01:45,960 --> 00:01:47,200 a bunch of you are going to scream, 60 00:01:47,440 --> 00:01:49,960 but it's a technical solution to a social problem. 61 00:01:50,540 --> 00:01:51,380 And it's not. 62 00:01:52,120 --> 00:01:54,080 It's actually a technical solution 63 00:01:54,080 --> 00:01:55,680 to a technical problem 64 00:01:55,680 --> 00:01:57,020 that was created by a social problem 65 00:01:57,020 --> 00:01:58,280 created by another technical solution. 66 00:01:59,560 --> 00:01:59,920 Okay? 67 00:02:01,220 --> 00:02:02,620 So once you can wrap your head around that, 68 00:02:02,700 --> 00:02:03,020 you'll get it. 69 00:02:04,160 --> 00:02:05,660 And we'll see if this works. 70 00:02:05,740 --> 00:02:07,820 I'm using, like, ghetto Arch Linux, 71 00:02:07,960 --> 00:02:09,300 which turns off my main screen, 72 00:02:09,440 --> 00:02:11,680 so you'll have to be my eyes. 73 00:02:13,900 --> 00:02:14,420 All right. 74 00:02:16,320 --> 00:02:17,260 So, first off, 75 00:02:17,380 --> 00:02:19,560 my project is called Utu. 76 00:02:20,160 --> 00:02:22,980 Utu is the Maori word for this revenge system 77 00:02:22,980 --> 00:02:24,480 that they had in New Zealand back in the day. 78 00:02:24,540 --> 00:02:25,340 It was literally, like, 79 00:02:25,420 --> 00:02:25,940 if your son... 80 00:02:27,020 --> 00:02:28,460 had killed someone else's grandfather, 81 00:02:28,800 --> 00:02:29,760 then a hundred years later, 82 00:02:29,840 --> 00:02:32,000 they could make that guy pay three pigs 83 00:02:32,000 --> 00:02:33,460 and some land or money or whatever. 84 00:02:33,760 --> 00:02:35,720 And it was this really intricate system 85 00:02:35,720 --> 00:02:37,840 of retribution and revenge and reputation, 86 00:02:38,100 --> 00:02:39,860 and it carried along family lines. 87 00:02:40,160 --> 00:02:41,840 And I got the name Utu. 88 00:02:42,000 --> 00:02:43,920 I had been working on this project for, you know, 89 00:02:43,920 --> 00:02:45,340 like two years, thinking, you know, 90 00:02:45,340 --> 00:02:47,300 hey, how can we add more social controls 91 00:02:47,300 --> 00:02:48,420 to Internet communications? 92 00:02:48,720 --> 00:02:49,720 Because I got to tell you, 93 00:02:49,780 --> 00:02:51,100 IRC blows. 94 00:02:51,800 --> 00:02:52,840 Who here... 95 00:02:52,840 --> 00:02:54,340 Who likes IRC? 96 00:02:54,400 --> 00:02:56,100 Like, honestly, who likes IRC? 97 00:02:57,160 --> 00:02:58,580 Okay, like four people like IRC. 98 00:02:58,620 --> 00:02:59,800 But do you think IRC could be better? 99 00:03:00,800 --> 00:03:02,180 And you notice my math is off? 100 00:03:02,300 --> 00:03:02,640 I mean, totally, 101 00:03:02,720 --> 00:03:04,220 the crypto is going to suck in this thing, right? 102 00:03:04,520 --> 00:03:04,760 Okay. 103 00:03:06,100 --> 00:03:07,440 It was actually more like 25. 104 00:03:07,600 --> 00:03:07,940 I don't know. 105 00:03:08,380 --> 00:03:10,200 So, okay, IRC just sucks, right? 106 00:03:10,280 --> 00:03:12,060 It seems to be like real-time spam. 107 00:03:12,440 --> 00:03:14,260 It's just the worst thing possible, okay? 108 00:03:15,060 --> 00:03:17,120 So I thought, how am I going to get rid of IRC? 109 00:03:17,160 --> 00:03:18,520 I want to get rid of IRC. 110 00:03:18,540 --> 00:03:19,580 Like, IRC is so bad. 111 00:03:19,760 --> 00:03:21,320 And I said, oh, what I need is, you know, 112 00:03:21,360 --> 00:03:21,880 come up with... 113 00:03:21,880 --> 00:03:23,500 I was studying sociology at the time, 114 00:03:23,500 --> 00:03:24,420 social network analysis. 115 00:03:24,600 --> 00:03:25,000 I was like, you know, 116 00:03:25,360 --> 00:03:26,800 let's add some of the social controls, 117 00:03:27,020 --> 00:03:28,280 social controls that you have on the Internet, 118 00:03:28,420 --> 00:03:29,360 or, you know, 119 00:03:29,360 --> 00:03:30,880 in regular human communication to the Internet. 120 00:03:31,120 --> 00:03:31,760 Like, for example, 121 00:03:31,760 --> 00:03:32,660 you can walk away from people, 122 00:03:32,760 --> 00:03:33,580 you can punch them in the nose, 123 00:03:33,660 --> 00:03:34,580 you can call the cops on them, 124 00:03:34,640 --> 00:03:35,200 these kinds of things. 125 00:03:35,260 --> 00:03:35,860 Let's see if we can do that. 126 00:03:36,160 --> 00:03:37,620 So this turns into this huge, 127 00:03:37,660 --> 00:03:39,000 almost philosophical exploration. 128 00:03:39,340 --> 00:03:40,400 And I have this problem. 129 00:03:40,480 --> 00:03:41,340 I can't work on a project 130 00:03:41,340 --> 00:03:42,820 until I have a name for the project. 131 00:03:43,140 --> 00:03:45,520 So I'm reading this article about this guy 132 00:03:45,520 --> 00:03:46,800 who's an actor in New Zealand, 133 00:03:46,940 --> 00:03:48,360 and he gets pissed off 134 00:03:48,360 --> 00:03:49,820 because Amazon took four days 135 00:03:49,820 --> 00:03:50,940 to send him a book instead of two. 136 00:03:51,100 --> 00:03:52,140 So he does the research, 137 00:03:52,760 --> 00:03:53,600 files the claim, 138 00:03:53,780 --> 00:03:54,960 gets $3,000, 139 00:03:55,200 --> 00:03:56,880 and tries to invalidate the one-click patent 140 00:03:56,880 --> 00:03:58,340 and actually comes pretty close to doing it. 141 00:03:58,880 --> 00:03:59,880 And in the middle of the article, 142 00:04:00,000 --> 00:04:00,240 he goes, 143 00:04:00,340 --> 00:04:02,360 and I felt it was time for a bit of Utu. 144 00:04:03,120 --> 00:04:06,060 I go, oh, Utu's like this great word. 145 00:04:06,140 --> 00:04:06,580 What is that? 146 00:04:06,620 --> 00:04:07,980 He's like, oh, it's a Maori system of revenge. 147 00:04:08,280 --> 00:04:09,780 It's a Sumerian god of the dead. 148 00:04:09,980 --> 00:04:11,000 It's like a really great name 149 00:04:11,000 --> 00:04:11,620 for the whole project. 150 00:04:11,780 --> 00:04:12,800 So that's why it's called Utu. 151 00:04:14,860 --> 00:04:16,280 And the grand experiment is, 152 00:04:16,380 --> 00:04:17,920 it's a sociology experiment. 153 00:04:18,240 --> 00:04:18,860 I want to see, 154 00:04:19,780 --> 00:04:21,600 can you actually try to solve 155 00:04:21,600 --> 00:04:23,080 a social problem, right, 156 00:04:23,560 --> 00:04:26,020 basically really poor communications on IRC, 157 00:04:26,580 --> 00:04:27,700 with a technical solution? 158 00:04:27,960 --> 00:04:29,340 So it's doomed to fail, 159 00:04:29,460 --> 00:04:30,080 but I want to see 160 00:04:30,080 --> 00:04:31,680 how far the envelope can you push? 161 00:04:31,960 --> 00:04:33,300 How much can you do with it, right? 162 00:04:37,120 --> 00:04:38,000 So what I've got 163 00:04:38,360 --> 00:04:39,560 is kind of three pieces 164 00:04:39,560 --> 00:04:40,700 of the philosophy for Utu. 165 00:04:41,620 --> 00:04:44,020 And when I say I want to kill off IRC, right, 166 00:04:44,100 --> 00:04:45,420 is I want to basically try 167 00:04:45,420 --> 00:04:46,840 to not really replace it. 168 00:04:46,920 --> 00:04:49,720 I don't even think Utu will make a dent in IRC. 169 00:04:49,800 --> 00:04:52,400 There's just too much porn, 170 00:04:55,120 --> 00:04:55,840 trolls, griefers, 171 00:04:56,500 --> 00:04:57,220 assholes, dickheads, 172 00:04:58,680 --> 00:04:59,400 operators, botnets. 173 00:04:59,800 --> 00:05:01,680 I mean, IRC is great 174 00:05:01,680 --> 00:05:03,940 for like 90% of the people 175 00:05:03,940 --> 00:05:04,680 on the internet, right? 176 00:05:04,800 --> 00:05:06,020 I mean, all the people running Tor 177 00:05:06,020 --> 00:05:07,420 and Freenode and all that stuff. 178 00:05:07,480 --> 00:05:08,440 Oh, those guys are great. 179 00:05:08,560 --> 00:05:10,020 I want that 10% of the internet 180 00:05:10,020 --> 00:05:10,900 that actually, you know, 181 00:05:10,920 --> 00:05:12,680 want to not waste their day 182 00:05:12,680 --> 00:05:13,540 with, you know, 183 00:05:13,540 --> 00:05:14,820 chatting with other dicks 184 00:05:14,820 --> 00:05:16,000 and jerks, right? 185 00:05:16,120 --> 00:05:17,380 You know, that actually want to have 186 00:05:17,380 --> 00:05:18,260 like meaningful communications 187 00:05:18,260 --> 00:05:19,260 and not have to do all spam. 188 00:05:19,560 --> 00:05:21,080 So what I came up with 189 00:05:21,520 --> 00:05:22,920 is kind of the cornerstone 190 00:05:22,920 --> 00:05:24,020 of human communication. 191 00:05:25,060 --> 00:05:25,940 And this is just, 192 00:05:25,940 --> 00:05:26,960 just me and I don't know shit, 193 00:05:27,080 --> 00:05:28,800 is you have to have strong identity. 194 00:05:29,160 --> 00:05:30,580 So you have to know who I am 195 00:05:30,580 --> 00:05:31,300 and who you are. 196 00:05:31,640 --> 00:05:32,820 This is why we have passports, 197 00:05:32,860 --> 00:05:33,500 why we move around, 198 00:05:33,700 --> 00:05:34,360 why we have identity, 199 00:05:34,560 --> 00:05:36,680 why it's also kind of difficult to subvert. 200 00:05:36,820 --> 00:05:38,400 It's a really flexible concept. 201 00:05:38,460 --> 00:05:39,180 It's hard to define. 202 00:05:39,420 --> 00:05:40,700 So that's a difficult piece. 203 00:05:41,200 --> 00:05:42,160 You have to have reputation. 204 00:05:42,880 --> 00:05:44,340 So you have to know my reputation. 205 00:05:44,540 --> 00:05:45,360 When I started this presentation, 206 00:05:45,600 --> 00:05:45,960 what did I do? 207 00:05:46,020 --> 00:05:47,080 I said, I'm a hacker. 208 00:05:47,760 --> 00:05:48,920 I've coded a parser. 209 00:05:49,140 --> 00:05:50,120 I wrote a web server. 210 00:05:50,280 --> 00:05:51,260 How many people here wrote a web server? 211 00:05:52,240 --> 00:05:53,300 Is your web server famous? 212 00:05:53,960 --> 00:05:54,320 Okay. 213 00:05:54,480 --> 00:05:54,840 Ha! 214 00:05:56,120 --> 00:05:57,140 I have a reputation. 215 00:05:57,700 --> 00:05:58,320 It's not a... 216 00:05:58,940 --> 00:05:59,340 Huh? 217 00:05:59,520 --> 00:06:00,360 Oh, you wrote it in real language? 218 00:06:00,520 --> 00:06:01,300 I did too. 219 00:06:02,260 --> 00:06:03,220 Half of it's in C, 220 00:06:03,340 --> 00:06:04,260 so suck it. 221 00:06:07,460 --> 00:06:09,700 Unless you did PDP-11 assembler, 222 00:06:09,720 --> 00:06:10,460 you ain't better, dude. 223 00:06:12,580 --> 00:06:12,980 Okay. 224 00:06:14,500 --> 00:06:15,260 I'm sorry, guys. 225 00:06:15,680 --> 00:06:17,040 So the idea with this is 226 00:06:17,040 --> 00:06:19,180 if you have strong identity, 227 00:06:19,320 --> 00:06:20,680 reputation, and retribution, 228 00:06:20,940 --> 00:06:21,860 and there's some interesting 229 00:06:21,860 --> 00:06:23,140 philosophical pieces to that, 230 00:06:23,260 --> 00:06:24,840 then you can actually add 231 00:06:24,840 --> 00:06:25,560 some of the controls. 232 00:06:25,940 --> 00:06:27,240 So let's say, for example, 233 00:06:27,380 --> 00:06:27,960 strong identity. 234 00:06:28,220 --> 00:06:29,900 First off, you know who I am, 235 00:06:30,460 --> 00:06:32,200 so there's ways of building 236 00:06:32,200 --> 00:06:33,100 a reputation around them, 237 00:06:33,160 --> 00:06:34,440 attaching some identity 238 00:06:35,180 --> 00:06:36,020 and some events, 239 00:06:36,160 --> 00:06:37,480 some historical moments. 240 00:06:38,000 --> 00:06:39,120 You also have retribution. 241 00:06:39,420 --> 00:06:41,620 I can make part of the reputation building 242 00:06:41,620 --> 00:06:43,420 actually telling you off, 243 00:06:43,560 --> 00:06:44,840 and other people will find out about it, 244 00:06:44,860 --> 00:06:45,600 and telling other people, 245 00:06:45,660 --> 00:06:47,420 hey, this guy Zed's kind of a jerk. 246 00:06:48,380 --> 00:06:49,780 If I mix all this together, 247 00:06:49,940 --> 00:06:50,760 then I can actually start 248 00:06:50,760 --> 00:06:52,780 adding together or bringing back 249 00:06:52,780 --> 00:06:54,060 some of the social controls 250 00:06:54,060 --> 00:06:55,660 that you get on the internet as is. 251 00:06:56,020 --> 00:06:57,580 I mean, in human communication, as is. 252 00:06:59,780 --> 00:07:00,860 So, here's the problem, though, 253 00:07:00,880 --> 00:07:01,520 is on the internet, 254 00:07:01,600 --> 00:07:02,980 nobody knows who the hell you are. 255 00:07:03,300 --> 00:07:05,260 It's actually just connected computers. 256 00:07:06,700 --> 00:07:06,980 Huh? 257 00:07:08,180 --> 00:07:08,800 Oh, I'm sorry. 258 00:07:08,920 --> 00:07:09,760 I typed this like two minutes 259 00:07:09,760 --> 00:07:10,960 before they're coming in here. 260 00:07:12,480 --> 00:07:13,700 I'm like totally dyslexic. 261 00:07:13,700 --> 00:07:14,440 Yeah, this is going to suck. 262 00:07:14,480 --> 00:07:14,800 Don't worry. 263 00:07:15,680 --> 00:07:16,880 You have to get past it. 264 00:07:16,980 --> 00:07:17,980 I gave a presentation once, 265 00:07:18,040 --> 00:07:19,100 and it was going to be on mathematics, 266 00:07:19,560 --> 00:07:20,440 testing, and security. 267 00:07:20,700 --> 00:07:21,600 It was going to be awful. 268 00:07:22,080 --> 00:07:23,700 And I said, so to prevent it, 269 00:07:23,760 --> 00:07:24,780 I said there's going to be this guy. 270 00:07:24,860 --> 00:07:25,860 I called him that guy. 271 00:07:25,860 --> 00:07:27,380 And I had responses. 272 00:07:27,640 --> 00:07:28,360 And that guy is the guy, 273 00:07:28,440 --> 00:07:29,920 he's the guy who's always in the back. 274 00:07:30,340 --> 00:07:31,740 So, when you say that you're using 275 00:07:31,740 --> 00:07:34,240 like a cryptography element of elliptic curve, 276 00:07:34,400 --> 00:07:35,780 and it's 192, you know, 277 00:07:35,840 --> 00:07:36,760 I'm like, I don't care. 278 00:07:37,540 --> 00:07:38,360 Just shut up. 279 00:07:38,360 --> 00:07:38,900 It's a presentation. 280 00:07:39,360 --> 00:07:40,360 But I like you guys talking. 281 00:07:40,540 --> 00:07:40,720 Okay. 282 00:07:42,600 --> 00:07:42,920 So. 283 00:07:45,360 --> 00:07:46,780 Seriously, you're not, I mean, no. 284 00:07:48,400 --> 00:07:49,040 So, it's who? 285 00:07:49,280 --> 00:07:49,600 It's who? 286 00:07:49,960 --> 00:07:50,280 So. 287 00:07:52,980 --> 00:07:53,680 Yeah, sort of. 288 00:07:53,740 --> 00:07:54,660 Come on, we got to get through this. 289 00:07:54,800 --> 00:07:55,560 I only got 50 minutes, 290 00:07:55,560 --> 00:07:56,360 and the goons are going to kill me. 291 00:07:58,360 --> 00:07:59,160 Then you have reputation. 292 00:08:00,380 --> 00:08:01,660 So, once I identify you, 293 00:08:02,280 --> 00:08:03,480 oh, and the identity, right, 294 00:08:03,580 --> 00:08:06,100 the best I can do is you have a key. 295 00:08:06,340 --> 00:08:09,160 So, the whole system is based on asymmetric cryptography, 296 00:08:09,280 --> 00:08:09,940 and you get a key. 297 00:08:10,380 --> 00:08:12,000 Now, the problem is that you can make keys. 298 00:08:12,060 --> 00:08:12,680 They're just like bits. 299 00:08:12,760 --> 00:08:14,220 They don't have any meaning or anything like that. 300 00:08:14,340 --> 00:08:16,380 So, in order to kind of get around that, 301 00:08:16,460 --> 00:08:17,180 we're playing with it, 302 00:08:17,220 --> 00:08:18,380 is it'll be invitation only. 303 00:08:18,740 --> 00:08:19,580 So, someone else, 304 00:08:19,620 --> 00:08:21,420 just like the same with the PGP web of trust, 305 00:08:21,640 --> 00:08:22,380 someone else will say, 306 00:08:22,480 --> 00:08:24,520 yeah, I certify that that guy is so-and-so, 307 00:08:24,520 --> 00:08:25,480 and he can come in. 308 00:08:26,140 --> 00:08:28,440 And that actually turned out to be a really difficult problem, 309 00:08:28,580 --> 00:08:30,880 because if you take a system like, say, Gmail, 310 00:08:31,100 --> 00:08:32,180 or some of these other invite systems, 311 00:08:32,340 --> 00:08:33,780 where they don't really care who the receiver is, 312 00:08:34,440 --> 00:08:36,040 then they have only one half of it. 313 00:08:36,100 --> 00:08:37,380 They know that you are a certain person. 314 00:08:37,440 --> 00:08:39,680 They gave you a giant chunk of, like, a number. 315 00:08:40,140 --> 00:08:42,160 But if you want to actually care who the other person is, 316 00:08:42,200 --> 00:08:43,560 you almost have to do a three-way handshake. 317 00:08:44,100 --> 00:08:44,780 So, you have to do, 318 00:08:45,540 --> 00:08:47,620 I certify that I want to give this to Joe, 319 00:08:47,760 --> 00:08:48,720 and then Joe comes in and says, 320 00:08:48,820 --> 00:08:50,020 oh, yeah, that's actually from Zed. 321 00:08:50,060 --> 00:08:51,380 So, then I certify I want to be invited, 322 00:08:51,500 --> 00:08:52,860 and then, you know, Zed goes, okay, 323 00:08:52,920 --> 00:08:54,240 and I want to say that Joe comes in. 324 00:08:54,520 --> 00:08:55,680 Which is something you don't see 325 00:08:55,680 --> 00:08:56,800 in a lot of other invite systems. 326 00:08:57,440 --> 00:09:00,300 There's no basic, basically, there's no non-repudiation 327 00:09:00,720 --> 00:09:02,900 on the actual handshake between including and people. 328 00:09:03,620 --> 00:09:05,960 So, once we have that, once we've got this non-repudiation 329 00:09:05,960 --> 00:09:07,440 and this invite and a key, 330 00:09:07,580 --> 00:09:09,540 well, that's about the best you can do. 331 00:09:09,680 --> 00:09:10,560 I mean, there's not much more. 332 00:09:11,120 --> 00:09:14,180 So, what this has to do, then, is we have to base the rest 333 00:09:14,180 --> 00:09:16,440 of the system on reputation. 334 00:09:17,060 --> 00:09:18,720 So, this is going to be basically collecting 335 00:09:18,720 --> 00:09:21,220 up information about who hated you, why they hated you, 336 00:09:21,320 --> 00:09:22,740 where they, you know, where they hated you, 337 00:09:22,800 --> 00:09:24,120 which rooms, how it happened. 338 00:09:24,120 --> 00:09:27,080 And this will build up, over time, your reputation. 339 00:09:27,400 --> 00:09:28,900 And then, eventually, people can be proactive. 340 00:09:29,160 --> 00:09:30,560 They can just say they just don't want to talk to you 341 00:09:30,560 --> 00:09:33,420 because you have, you know, 300 people hate you 342 00:09:33,420 --> 00:09:35,000 or you've hated thousands of people. 343 00:09:36,480 --> 00:09:38,640 So, when they say you, though, they mean that key. 344 00:09:38,940 --> 00:09:40,400 We can't really say the person. 345 00:09:40,680 --> 00:09:42,180 And that's the best we can come up with. 346 00:09:42,380 --> 00:09:45,360 And this is just kind of a basic philosophical thing. 347 00:09:45,500 --> 00:09:47,580 It's not much, there's people who have been arguing 348 00:09:47,580 --> 00:09:48,500 about it for a long time. 349 00:09:48,600 --> 00:09:49,620 Just the concept of identity. 350 00:09:52,700 --> 00:09:54,100 Well, let's hold off on that one. 351 00:09:54,100 --> 00:09:54,380 Let's hold off on that for a bit. 352 00:09:54,500 --> 00:09:54,560 Okay? 353 00:09:54,660 --> 00:09:55,660 There's like a Q and A session. 354 00:09:55,820 --> 00:09:57,840 So, just let me be funny and then heckle me a bit. 355 00:09:59,400 --> 00:09:59,860 That guy. 356 00:10:02,320 --> 00:10:02,600 Anyway. 357 00:10:04,920 --> 00:10:05,620 I'm sorry, man. 358 00:10:05,680 --> 00:10:06,260 I'm just teasing you. 359 00:10:07,400 --> 00:10:08,380 So, then we have retribution. 360 00:10:09,820 --> 00:10:12,980 So, retribution is really hard to do on the internet 361 00:10:12,980 --> 00:10:16,340 because the basic protocols just don't let you boot people off. 362 00:10:16,420 --> 00:10:17,340 You don't really know where they come from. 363 00:10:17,420 --> 00:10:18,420 They can go through NATs. 364 00:10:18,420 --> 00:10:20,500 You have no real way of stopping them. 365 00:10:21,000 --> 00:10:24,080 But, with identity and a solid key that's there, 366 00:10:24,080 --> 00:10:24,600 it's been invited. 367 00:10:24,740 --> 00:10:25,320 We kind of do. 368 00:10:25,520 --> 00:10:27,880 We can actually play some retribution against your key. 369 00:10:28,040 --> 00:10:30,400 We can do certain things to you, which is what we'll see in a second. 370 00:10:30,680 --> 00:10:32,660 And this is where I get the concept of hate. 371 00:10:33,160 --> 00:10:35,540 So, the whole point of U2 is that it's a chat network 372 00:10:35,540 --> 00:10:36,480 where you can hate people. 373 00:10:36,940 --> 00:10:40,120 And the process of hating them actually makes them calculate hashcash. 374 00:10:40,620 --> 00:10:43,300 Now, it's not the real hashcash because that had some technical problems, 375 00:10:43,400 --> 00:10:46,140 but it's mostly you make them try to break a weak cryptography problem. 376 00:10:46,880 --> 00:10:48,180 And you can scale it. 377 00:10:48,240 --> 00:10:49,720 So, I can say I hate you at 16. 378 00:10:50,440 --> 00:10:54,060 And then you have to calculate up to about a 2 to the 16 random number. 379 00:10:54,080 --> 00:10:54,440 Right? 380 00:10:54,600 --> 00:10:55,540 And try to break that. 381 00:10:56,320 --> 00:10:58,120 So, with that kind of retribution, 382 00:10:58,460 --> 00:11:00,760 and the fact that this is all signed and encrypted, 383 00:11:01,040 --> 00:11:04,140 I can now start gathering information about who hates who, 384 00:11:04,260 --> 00:11:06,240 who talks to who, where they come from. 385 00:11:07,640 --> 00:11:09,660 And we can start looking at the social problem. 386 00:11:09,980 --> 00:11:12,960 Because what this turns into is it turns into a weighted social network 387 00:11:12,960 --> 00:11:15,540 that you can actually analyze and crunch numbers on 388 00:11:15,540 --> 00:11:19,160 and start saying, well, okay, if we change the hate model to be this way 389 00:11:19,160 --> 00:11:20,620 or we change the hate model to be that way, 390 00:11:20,720 --> 00:11:22,020 how does the social network change? 391 00:11:22,260 --> 00:11:23,640 Do the jerks go further away? 392 00:11:24,640 --> 00:11:27,040 Another alternative to hate is that it's distance. 393 00:11:27,700 --> 00:11:29,640 Because people aren't prevented from talking to you, 394 00:11:29,680 --> 00:11:30,960 it just takes them a little while longer. 395 00:11:31,320 --> 00:11:32,900 So, it's like if I hate you, 396 00:11:33,040 --> 00:11:34,260 and you go to the back of the room, 397 00:11:34,340 --> 00:11:34,900 you have to yell at me. 398 00:11:35,000 --> 00:11:35,840 You could yell at me there, 399 00:11:35,940 --> 00:11:36,900 but back of the room would be harder. 400 00:11:37,040 --> 00:11:37,280 Right? 401 00:11:37,880 --> 00:11:38,440 Okay. See? 402 00:11:41,200 --> 00:11:41,660 All right. 403 00:11:41,700 --> 00:11:44,820 So, the thing is I'm a programmer, 404 00:11:44,840 --> 00:11:46,440 but I'm a super-duper lazy programmer. 405 00:11:48,120 --> 00:11:51,060 Which is probably why my stuff tends to run reasonably well. 406 00:11:52,760 --> 00:11:53,800 This is the entire protocol. 407 00:11:54,580 --> 00:11:56,180 I send two bytes for the size, 408 00:11:56,720 --> 00:11:58,240 so that you only get about 64K. 409 00:11:58,380 --> 00:11:59,460 Remember, it's a messaging protocol, 410 00:11:59,640 --> 00:12:02,080 so I'm not trying to send huge files or anything like that. 411 00:12:02,160 --> 00:12:03,300 It's just text messages, whatever. 412 00:12:04,260 --> 00:12:05,840 And then I send a data structure. 413 00:12:06,040 --> 00:12:07,060 So, I'll show you what the data structure is. 414 00:12:07,160 --> 00:12:08,180 Do we have any list fans? 415 00:12:08,680 --> 00:12:10,500 There's got to be like ten list fans in here. 416 00:12:11,340 --> 00:12:12,060 Oh, seriously. 417 00:12:12,360 --> 00:12:13,020 Come on, four? 418 00:12:13,960 --> 00:12:15,120 Oh, five. All right, rock. 419 00:12:16,840 --> 00:12:17,620 Yeah, yeah, exactly. 420 00:12:18,320 --> 00:12:19,260 It's all the parentheses. 421 00:12:20,200 --> 00:12:21,360 Waiting their arms down. 422 00:12:27,900 --> 00:12:29,000 You don't get it? Okay. 423 00:12:31,480 --> 00:12:33,380 So, what we have within the protocol... 424 00:12:33,380 --> 00:12:36,840 So, the basis of the protocol is that you have your... 425 00:12:36,840 --> 00:12:38,620 Remember the seven-layer burrito, right? 426 00:12:38,720 --> 00:12:40,360 The seven-layer ISO protocol standard 427 00:12:40,360 --> 00:12:41,400 that nobody ever uses 428 00:12:41,400 --> 00:12:43,580 because it was designed by a bunch of telecom idiots in Europe? 429 00:12:44,740 --> 00:12:45,360 Okay, yeah. 430 00:12:46,960 --> 00:12:48,780 IP goes up to about maybe layer four, 431 00:12:48,860 --> 00:12:50,060 and after that, you're kind of on your own. 432 00:12:50,180 --> 00:12:52,080 So, what the two bytes do 433 00:12:52,080 --> 00:12:53,920 is they give me my framing. 434 00:12:54,680 --> 00:12:57,140 So, framing in internet protocols really blows. 435 00:12:57,480 --> 00:12:58,920 You've either got HTTP, 436 00:12:59,200 --> 00:13:00,820 where the framing is kind of boundary-based, 437 00:13:01,040 --> 00:13:02,840 and then they've got seven different boundaries. 438 00:13:02,960 --> 00:13:05,100 They've got MIME types and content lengths 439 00:13:05,100 --> 00:13:07,580 and connection close operations and things like that. 440 00:13:07,740 --> 00:13:09,740 So, the framing is kind of mixed in. 441 00:13:09,880 --> 00:13:10,900 And the problem with that is 442 00:13:10,900 --> 00:13:12,520 you run into the classic escape problem. 443 00:13:12,780 --> 00:13:14,200 You always have to escape something 444 00:13:14,200 --> 00:13:15,640 that could be actual data 445 00:13:15,640 --> 00:13:17,160 and differentiate it from the framing. 446 00:13:17,980 --> 00:13:20,780 With this system, you can do just pre-framing. 447 00:13:20,900 --> 00:13:24,040 It's not a binary versus a parsed protocol system. 448 00:13:24,040 --> 00:13:26,440 It's I frame the protocol with just two bytes. 449 00:13:26,600 --> 00:13:27,860 You get a little more fancy with it, 450 00:13:27,900 --> 00:13:29,180 but I found you don't need anything more. 451 00:13:29,580 --> 00:13:31,520 And that sets up the actual frame 452 00:13:31,900 --> 00:13:34,620 that gets layered on top of TCPIP's randomness. 453 00:13:35,100 --> 00:13:36,300 And then the receiver knows, 454 00:13:36,420 --> 00:13:37,320 okay, I'm just going to read this much. 455 00:13:37,440 --> 00:13:38,000 That's the message. 456 00:13:40,260 --> 00:13:43,460 So, then the actual data that's transmitted 457 00:13:43,460 --> 00:13:47,000 is this weird-ass protocol I created called Stackish. 458 00:13:47,180 --> 00:13:48,100 It was actually a joke. 459 00:13:48,160 --> 00:13:48,900 It was an XML joke. 460 00:13:49,100 --> 00:13:50,080 It was like people were whining 461 00:13:50,080 --> 00:13:52,600 that XML stole Lisp's S expression 462 00:13:52,600 --> 00:13:54,720 and then made it really bad, 463 00:13:55,300 --> 00:13:56,160 which is kind of true. 464 00:13:57,060 --> 00:13:58,220 So what I did is I said, 465 00:13:58,300 --> 00:14:00,000 oh, yeah, well, you guys just suck 466 00:14:00,000 --> 00:14:02,120 because S expressions are hardcore. 467 00:14:02,380 --> 00:14:03,240 You've got to be really good, 468 00:14:03,340 --> 00:14:06,240 but this is a fourth stack-based S expression system. 469 00:14:07,220 --> 00:14:08,500 You've got to be hardcore to do that. 470 00:14:09,680 --> 00:14:12,320 So what you get is if you read the bottom, 471 00:14:12,860 --> 00:14:14,460 you see I've got a root, a child, 472 00:14:14,520 --> 00:14:15,580 and then two nodes under the child. 473 00:14:16,620 --> 00:14:18,960 And then right above that is the Stackish. 474 00:14:19,380 --> 00:14:21,240 And all it is is the exact same data structure, 475 00:14:21,400 --> 00:14:22,580 exact same properties as S expression. 476 00:14:22,600 --> 00:14:23,740 Exact same everything. 477 00:14:24,020 --> 00:14:25,040 The difference is, 478 00:14:25,140 --> 00:14:26,580 and this is nice for network protocols, 479 00:14:26,800 --> 00:14:27,960 is you know when you're done. 480 00:14:28,860 --> 00:14:30,460 You know exactly how much you're going to read. 481 00:14:30,660 --> 00:14:32,800 And I have a new thing in it called a blob. 482 00:14:32,960 --> 00:14:34,660 It's like a net string from Dan Bernstein. 483 00:14:35,020 --> 00:14:35,820 It's just literally, 484 00:14:35,980 --> 00:14:37,460 I tell you how much is going to be in the string, 485 00:14:37,620 --> 00:14:39,160 a colon, and then that's the string. 486 00:14:39,720 --> 00:14:41,400 So that way, everything is pre-sized. 487 00:14:41,860 --> 00:14:43,800 The frame sets up the entire data message. 488 00:14:44,040 --> 00:14:46,540 Any binary elements are framed within net strings. 489 00:14:46,760 --> 00:14:47,360 Works great. 490 00:14:47,660 --> 00:14:48,800 Because it's stack-based, 491 00:14:49,500 --> 00:14:51,400 it gets loaded into trees really easy. 492 00:14:51,460 --> 00:14:52,280 You can actually build a tree online. 493 00:14:52,600 --> 00:14:53,220 You don't need to do any, 494 00:14:53,260 --> 00:14:54,880 maintain any other stacks or do anything. 495 00:14:55,080 --> 00:14:56,000 It's very easy to parse. 496 00:14:56,340 --> 00:14:58,100 So that makes your protocols nice and small, 497 00:14:58,200 --> 00:14:59,140 fast, simple. 498 00:15:01,160 --> 00:15:03,440 So now the semantics of the protocol are pretty simple. 499 00:15:03,620 --> 00:15:04,340 You've got a hub. 500 00:15:04,660 --> 00:15:06,080 Hub has a bunch of people talking. 501 00:15:06,360 --> 00:15:08,340 And these people talk on routings or rooms. 502 00:15:08,860 --> 00:15:10,220 And then as messages come in, 503 00:15:10,260 --> 00:15:11,520 the hub just sends them to different rooms. 504 00:15:12,040 --> 00:15:14,220 The hub is fairly dumb on purpose. 505 00:15:14,600 --> 00:15:16,560 It actually doesn't really store anything on disk 506 00:15:16,560 --> 00:15:17,880 or do anything major. 507 00:15:18,120 --> 00:15:20,080 It will eventually just because you have to, 508 00:15:20,180 --> 00:15:21,980 but it's mostly just trying to keep it in memory. 509 00:15:22,600 --> 00:15:24,660 The hub is only about 5,000 lines of C code. 510 00:15:25,260 --> 00:15:26,660 It's fairly well documented. 511 00:15:26,860 --> 00:15:28,300 Very straightforward C code. 512 00:15:28,420 --> 00:15:29,300 Nothing really advanced. 513 00:15:29,760 --> 00:15:31,160 I didn't write my own crypto. 514 00:15:31,400 --> 00:15:32,880 I'm just borrowing everything I can. 515 00:15:33,060 --> 00:15:33,960 It's very tiny. 516 00:15:34,220 --> 00:15:36,500 And it only runs in about 7 megs of RAM. 517 00:15:36,680 --> 00:15:38,280 So you can actually fire one of these things up 518 00:15:38,280 --> 00:15:38,920 really quick, easy. 519 00:15:39,100 --> 00:15:40,800 It's ANSI C for the most part. 520 00:15:43,920 --> 00:15:46,180 And then the data encoding is just ASCII text. 521 00:15:46,440 --> 00:15:48,120 Now the problem that you have is everyone goes, 522 00:15:48,200 --> 00:15:49,420 oh my god, you need UTF-8 523 00:15:49,420 --> 00:15:51,260 because the internet's international. 524 00:15:51,260 --> 00:15:54,980 The data encoding can be pretty much anything you want. 525 00:15:55,240 --> 00:15:57,160 And just today, I had a bug. 526 00:15:57,600 --> 00:15:59,100 You know, you never change anything 527 00:15:59,100 --> 00:16:00,540 five minutes before a presentation. 528 00:16:00,860 --> 00:16:01,840 So I'm trying to get the client to work. 529 00:16:01,920 --> 00:16:03,380 And I found that if I type a whole bunch of As, 530 00:16:03,440 --> 00:16:04,200 it blows up. 531 00:16:05,160 --> 00:16:05,740 I'm like, oh. 532 00:16:06,380 --> 00:16:08,520 Because all my unit tests only use like test 533 00:16:08,520 --> 00:16:09,940 as the message I was sending. 534 00:16:10,180 --> 00:16:11,000 Because I'm brilliant. 535 00:16:11,680 --> 00:16:12,820 And so what I had to do is, 536 00:16:13,300 --> 00:16:15,080 I had to go into the client and dig around. 537 00:16:15,300 --> 00:16:16,580 And I'm using JRuby for this. 538 00:16:16,800 --> 00:16:17,400 And Java. 539 00:16:17,660 --> 00:16:19,020 And it's like, you know, it's a lot of fun, 540 00:16:19,060 --> 00:16:20,640 but it's kind of nasty to try and dig through. 541 00:16:20,640 --> 00:16:22,620 And I find out I was using a file writer, 542 00:16:22,800 --> 00:16:24,300 which translates UTF-8, 543 00:16:24,420 --> 00:16:25,880 and I'm trying to send binary data. 544 00:16:26,200 --> 00:16:27,620 So I had to use a file output screen. 545 00:16:28,280 --> 00:16:29,600 So that's the problem you run into. 546 00:16:29,740 --> 00:16:31,340 If I just say it's ASCII, that's it. 547 00:16:31,720 --> 00:16:32,760 Then what you can do is, 548 00:16:32,800 --> 00:16:34,040 if you have to send UTF-8, 549 00:16:34,120 --> 00:16:34,720 you put it in a blob. 550 00:16:34,940 --> 00:16:35,940 The blob doesn't care, 551 00:16:36,060 --> 00:16:37,820 and the receiver's responsible for figuring out 552 00:16:37,820 --> 00:16:38,400 what to do with it. 553 00:16:38,920 --> 00:16:40,480 So the actual encoding and transport 554 00:16:40,480 --> 00:16:41,200 is very straightforward. 555 00:16:43,760 --> 00:16:45,820 And remember, it's simplicity, right? 556 00:16:45,920 --> 00:16:47,560 You can't have bugs if there's no code. 557 00:16:47,980 --> 00:16:49,620 So it's very, very simple and straightforward. 558 00:16:51,360 --> 00:16:51,780 Right? 559 00:16:52,280 --> 00:16:53,000 You're laughing. 560 00:16:53,180 --> 00:16:53,820 That's true. 561 00:16:54,220 --> 00:16:55,320 How many people believe that? 562 00:16:56,600 --> 00:16:58,640 Why are the Java programmers raising their hands? 563 00:17:01,100 --> 00:17:01,520 Huh? 564 00:17:02,860 --> 00:17:03,280 Seriously. 565 00:17:04,940 --> 00:17:05,360 Okay. 566 00:17:06,220 --> 00:17:06,820 That's right. 567 00:17:06,980 --> 00:17:07,400 Called out. 568 00:17:08,320 --> 00:17:10,040 I think we should beat them with sacks of oranges. 569 00:17:12,400 --> 00:17:13,040 I'm sorry. 570 00:17:13,660 --> 00:17:15,040 I'm not that violent, I swear. 571 00:17:15,100 --> 00:17:15,720 I'm just being funny. 572 00:17:15,940 --> 00:17:16,780 Am I being funny? 573 00:17:17,440 --> 00:17:17,860 Good. 574 00:17:17,980 --> 00:17:18,140 All right. 575 00:17:18,160 --> 00:17:18,300 Cool. 576 00:17:21,240 --> 00:17:23,920 So the main thing is in the protocol, right? 577 00:17:24,420 --> 00:17:25,980 I wanted to use SSL. 578 00:17:26,580 --> 00:17:28,220 But there's a problem with SSL 579 00:17:28,220 --> 00:17:29,900 is that it was designed way back in the decade 580 00:17:29,900 --> 00:17:32,820 when, you know, everyone had a 386 computer 581 00:17:32,820 --> 00:17:35,060 and they were trying to surf their porn, 582 00:17:35,280 --> 00:17:37,140 and they wanted to really pay for that porn. 583 00:17:37,560 --> 00:17:38,880 And so then SSL came out. 584 00:17:38,900 --> 00:17:39,420 They go, damn! 585 00:17:39,700 --> 00:17:41,540 These computers can't calculate any crypto. 586 00:17:41,540 --> 00:17:42,420 The server has to do it all. 587 00:17:43,100 --> 00:17:44,140 And so the problem is, 588 00:17:44,180 --> 00:17:45,640 is you can take an SSL client, connect, 589 00:17:45,900 --> 00:17:46,660 give some bogus data, 590 00:17:46,860 --> 00:17:48,160 make the server do some crypto and disconnect. 591 00:17:48,600 --> 00:17:50,480 Because, you know, there's no control over TCP IP. 592 00:17:50,480 --> 00:17:53,480 And since you never really gave a client certificate, 593 00:17:53,780 --> 00:17:55,440 the server has no way of blocking 594 00:17:55,440 --> 00:17:56,860 that certificate the next time. 595 00:17:57,040 --> 00:17:58,800 It's just really difficult to control. 596 00:17:59,300 --> 00:18:00,840 So I went and I did some research 597 00:18:00,840 --> 00:18:02,340 and I used this mechanism called... 598 00:18:02,880 --> 00:18:03,360 Hello? 599 00:18:04,860 --> 00:18:08,140 Called ISO mechanism 648-2 600 00:18:08,140 --> 00:18:09,620 without the Helsinki vulnerability 601 00:18:09,620 --> 00:18:11,220 or something like that. 602 00:18:11,280 --> 00:18:11,740 It's in a book. 603 00:18:11,840 --> 00:18:13,440 I just looked at the book and it said do this. 604 00:18:13,800 --> 00:18:16,360 And the main thing that that protocol was 605 00:18:16,360 --> 00:18:17,740 is it was a peer-based protocol 606 00:18:17,740 --> 00:18:19,920 that used asymmetric crypto only. 607 00:18:19,920 --> 00:18:21,340 To do its key exchange. 608 00:18:21,900 --> 00:18:23,940 It does the key exchange for the session key 609 00:18:23,940 --> 00:18:25,120 and then identity exchange. 610 00:18:25,400 --> 00:18:26,960 So you tack people's identity on. 611 00:18:27,020 --> 00:18:27,820 They have to have a valid key. 612 00:18:27,920 --> 00:18:28,480 Everything works. 613 00:18:28,900 --> 00:18:30,320 Public crypto key, all that. 614 00:18:30,740 --> 00:18:31,840 But it was peer-based. 615 00:18:32,080 --> 00:18:33,960 So originally the protocol was designed 616 00:18:33,960 --> 00:18:36,600 so that the client did less work than the server. 617 00:18:36,720 --> 00:18:38,100 But it's peer, so I just switched it. 618 00:18:38,680 --> 00:18:40,080 So what happens when the client connects, 619 00:18:40,240 --> 00:18:41,580 the server goes, this is my key. 620 00:18:42,560 --> 00:18:44,420 Client has to go in and calculate all this crypto 621 00:18:44,420 --> 00:18:45,400 and do all this stuff to say, 622 00:18:45,480 --> 00:18:46,360 to validate who they are 623 00:18:46,360 --> 00:18:47,520 and then gives it to the server. 624 00:18:47,660 --> 00:18:49,260 The server can easily validate that. 625 00:18:49,320 --> 00:18:49,800 And if it's wrong, 626 00:18:49,920 --> 00:18:51,420 the server can put that key in a blacklist 627 00:18:51,420 --> 00:18:52,380 and then boot them. 628 00:18:53,060 --> 00:18:55,960 So the server doesn't do the calculations first. 629 00:18:57,380 --> 00:18:59,480 The reason for doing this kind of protocol 630 00:18:59,480 --> 00:19:02,480 is that TCPIP doesn't give me any real controls 631 00:19:03,320 --> 00:19:04,920 over which clients can connect 632 00:19:04,920 --> 00:19:06,320 or where they're coming from or who they are. 633 00:19:06,420 --> 00:19:08,280 So I have to rely on the next layer, 634 00:19:08,360 --> 00:19:10,400 the framing and the semantics and the cryptography. 635 00:19:11,300 --> 00:19:13,880 And if I can sit in and design the protocol 636 00:19:13,880 --> 00:19:16,020 assuming people are going to bust it, spam it, 637 00:19:16,080 --> 00:19:17,360 that basically everyone on the internet 638 00:19:17,360 --> 00:19:18,540 is a fucking asshole 639 00:19:18,540 --> 00:19:19,720 and they need to be taken down. 640 00:19:20,160 --> 00:19:22,200 Which is the way you should be designing your software. 641 00:19:22,420 --> 00:19:23,600 If it goes on the internet, 642 00:19:23,760 --> 00:19:24,960 it's a social piece of software. 643 00:19:25,580 --> 00:19:27,620 It shouldn't be designed assuming everyone likes you. 644 00:19:27,740 --> 00:19:29,080 That's what they did back in the DARPA days. 645 00:19:29,220 --> 00:19:29,760 And what have we got? 646 00:19:30,100 --> 00:19:30,920 We have HTTP. 647 00:19:32,560 --> 00:19:32,920 Right? 648 00:19:33,440 --> 00:19:34,440 Remember, I wrote a web server. 649 00:19:35,680 --> 00:19:37,660 I'm going to milk that for everything it's worth, right? 650 00:19:39,220 --> 00:19:40,140 I'll be like 90. 651 00:19:40,260 --> 00:19:41,040 I wrote a web server. 652 00:19:43,300 --> 00:19:44,100 Move my wheelchair. 653 00:19:46,520 --> 00:19:49,200 So by taking the approach 654 00:19:49,200 --> 00:19:51,200 that it goes on the internet, it's social. 655 00:19:51,820 --> 00:19:53,460 Eventually some person is going to hack it. 656 00:19:54,240 --> 00:19:55,780 Eventually someone's going to try and abuse it. 657 00:19:55,960 --> 00:19:57,080 Then what I can do is say, 658 00:19:57,180 --> 00:19:58,940 alright, let's do as much as I can. 659 00:19:59,080 --> 00:20:00,200 I'm not going to be able to stop everyone. 660 00:20:00,380 --> 00:20:02,860 All some guy's got to do is fire up 200,000 machines 661 00:20:02,860 --> 00:20:04,960 and just do TCP connects 662 00:20:04,960 --> 00:20:06,360 and take down my little VPS. 663 00:20:07,100 --> 00:20:09,100 But if the server and the protocol, 664 00:20:09,340 --> 00:20:11,260 from the base of the protocol on up, 665 00:20:11,340 --> 00:20:13,480 is designed to make it so that it's harder, 666 00:20:13,720 --> 00:20:14,860 it's not making it impossible, 667 00:20:15,260 --> 00:20:15,780 just harder, 668 00:20:16,380 --> 00:20:18,420 then what I'm doing is banking on the predator 669 00:20:19,100 --> 00:20:19,380 concept. 670 00:20:19,980 --> 00:20:22,380 A predator, when picking two different types of prey, 671 00:20:22,540 --> 00:20:23,460 will pick the weakest one. 672 00:20:24,580 --> 00:20:26,360 So there's IRC or some other 673 00:20:26,360 --> 00:20:28,220 like website or something in denial service 674 00:20:28,220 --> 00:20:29,920 or mine, which is a little more difficult. 675 00:20:30,180 --> 00:20:31,100 They've got to get an invite, 676 00:20:31,220 --> 00:20:32,180 and they've got to set up a cluster, 677 00:20:32,280 --> 00:20:33,060 and they've got to do all this stuff. 678 00:20:33,280 --> 00:20:34,140 They're just going to move on. 679 00:20:35,160 --> 00:20:37,180 So this is why I don't really want to kill off IRC, 680 00:20:37,240 --> 00:20:38,880 because I need them to suck off all the evil. 681 00:20:39,780 --> 00:20:40,060 Right? 682 00:20:41,260 --> 00:20:42,220 You know, I just like, you know, 683 00:20:42,920 --> 00:20:44,900 oh wow, man, this U2 thing is really hard to butt. 684 00:20:44,960 --> 00:20:45,740 Oh, IRC. 685 00:20:46,680 --> 00:20:47,980 Alright, I'll run my botnet on that. 686 00:20:50,540 --> 00:20:53,380 So the cryptography that I used is, 687 00:20:53,480 --> 00:20:55,400 the number one rule is you never write your own crypto. 688 00:20:55,740 --> 00:20:57,360 Because there's people way smarter than me. 689 00:20:57,580 --> 00:20:57,900 Right? 690 00:20:57,980 --> 00:20:58,880 I mean, way smarter. 691 00:20:59,160 --> 00:21:00,640 And there's people who actually, like, 692 00:21:00,700 --> 00:21:02,520 get paid money by the government to do that. 693 00:21:03,700 --> 00:21:04,900 And I'm not a cryptographer. 694 00:21:06,720 --> 00:21:09,580 In fact, I'm really, really bad at math, 695 00:21:09,620 --> 00:21:10,080 as you guys saw. 696 00:21:10,920 --> 00:21:12,660 So these are the standards I used. 697 00:21:12,840 --> 00:21:14,060 This is nothing fancy. 698 00:21:14,240 --> 00:21:16,780 The library I used is this one called LibTom Crypt. 699 00:21:17,000 --> 00:21:17,940 It's a small, 700 00:21:19,060 --> 00:21:20,100 ANSI-C based one. 701 00:21:20,180 --> 00:21:20,840 Totally free. 702 00:21:20,960 --> 00:21:22,200 You can grab it, do whatever you want with it. 703 00:21:22,300 --> 00:21:22,480 Right? 704 00:21:22,740 --> 00:21:24,060 It has all these standards in it. 705 00:21:24,760 --> 00:21:25,820 First off, AES. 706 00:21:26,420 --> 00:21:27,240 Nothing new there. 707 00:21:27,340 --> 00:21:28,280 There's test vectors. 708 00:21:28,380 --> 00:21:29,860 There's everything to validate that it's working correctly. 709 00:21:30,640 --> 00:21:31,360 256 bits. 710 00:21:31,680 --> 00:21:34,340 There's this weird problem where if you use an asymmetric crypto, 711 00:21:34,980 --> 00:21:38,060 and then you try to wrap it like you use it to establish a key for symmetric, 712 00:21:38,320 --> 00:21:39,540 they have to be the same key size. 713 00:21:39,900 --> 00:21:41,000 Otherwise, they're just not useless. 714 00:21:41,020 --> 00:21:41,800 You get the lowest one. 715 00:21:42,080 --> 00:21:45,360 The problem is, is elliptic curve cryptography has weird key sizes. 716 00:21:45,780 --> 00:21:47,480 So you can't, you have to match them, 717 00:21:47,480 --> 00:21:49,660 and the only matching is like at 256 or 64. 718 00:21:50,000 --> 00:21:50,620 It gets really weird. 719 00:21:50,960 --> 00:21:52,080 So this is actually insane. 720 00:21:52,460 --> 00:21:54,020 This is probably way more than I actually need. 721 00:21:55,540 --> 00:21:56,900 And then SHA-256. 722 00:21:57,000 --> 00:21:57,760 So those are all matching. 723 00:21:58,140 --> 00:21:59,940 And then 128-bit nonces. 724 00:22:00,020 --> 00:22:03,360 Those are just rotated as the messages go back and forth. 725 00:22:03,980 --> 00:22:05,840 And then that's the mechanism that I'm using. 726 00:22:07,160 --> 00:22:08,380 And the cryptography. 727 00:22:08,740 --> 00:22:09,100 CCM. 728 00:22:09,280 --> 00:22:10,140 I don't even know what it means. 729 00:22:10,280 --> 00:22:12,060 But basically, I forget what it stands for. 730 00:22:12,160 --> 00:22:15,600 But it's basically, it hashes it and does the HMAC and all that stuff 731 00:22:15,600 --> 00:22:16,500 in a very standard way 732 00:22:16,500 --> 00:22:18,260 that NIST has decided works really well. 733 00:22:19,120 --> 00:22:22,380 And AAD is additional authenticated data. 734 00:22:22,540 --> 00:22:24,320 So this is the stuff where the header goes in. 735 00:22:24,440 --> 00:22:26,700 The header is just crap that everybody knows anyways. 736 00:22:26,800 --> 00:22:28,580 It's like the message and when it was sent 737 00:22:28,580 --> 00:22:29,240 and stuff like that. 738 00:22:29,460 --> 00:22:30,720 So it's not going to be encrypted. 739 00:22:30,940 --> 00:22:32,460 It kind of has to be read and validated 740 00:22:32,460 --> 00:22:35,380 before the actual message is peeled out and decrypted. 741 00:22:35,580 --> 00:22:37,140 So it's just authenticated, though, 742 00:22:37,160 --> 00:22:38,260 so people can't tamper with that. 743 00:22:39,420 --> 00:22:41,260 And then finally, I'm using Fortuna, 744 00:22:41,280 --> 00:22:42,920 which is a pseudo-random number generator. 745 00:22:43,940 --> 00:22:44,340 Okay. 746 00:22:44,440 --> 00:22:45,480 So who got all that? 747 00:22:46,660 --> 00:22:47,460 All right. 748 00:22:48,500 --> 00:22:48,900 Okay. 749 00:22:49,800 --> 00:22:51,420 And by the way, you can actually take... 750 00:22:51,420 --> 00:22:52,980 There's one C file that does all this. 751 00:22:53,200 --> 00:22:54,860 And if you wanted to get a glimpse 752 00:22:54,860 --> 00:22:56,500 into how to actually implement something like this, 753 00:22:56,600 --> 00:22:58,300 it's very well commented and documented. 754 00:22:58,300 --> 00:22:59,920 You grab the one C file and go through it. 755 00:23:00,020 --> 00:23:01,260 And if you wanted to audit it, 756 00:23:01,360 --> 00:23:03,440 I'm trying to rewrite it in a literate style, 757 00:23:03,620 --> 00:23:04,960 so that way it'd be completely redone 758 00:23:04,960 --> 00:23:06,240 and you could just go through and audit it. 759 00:23:09,780 --> 00:23:11,980 So I've got these two implementations of it. 760 00:23:14,920 --> 00:23:16,200 U2 protocol.info. 761 00:23:16,660 --> 00:23:20,380 It's where you can go and get basically the code and whatnot, 762 00:23:20,600 --> 00:23:21,140 but it's a little rough. 763 00:23:21,420 --> 00:23:24,580 Where you want to go to is savingtheinternetwithhate.com. 764 00:23:25,880 --> 00:23:27,060 And that's actually... 765 00:23:27,720 --> 00:23:29,580 Yeah, I think if you go there, you'll kind of like that site. 766 00:23:30,980 --> 00:23:33,300 Mostly, basically, it's this presentation in written form. 767 00:23:33,420 --> 00:23:36,680 And it almost made it so I didn't get my job at Bear Stearns, so... 768 00:23:37,700 --> 00:23:38,460 Lots of cussing. 769 00:23:39,140 --> 00:23:41,960 And then ihaterubyforge.org is the client I'm going to show you. 770 00:23:42,140 --> 00:23:43,840 The client is done in JRuby, 771 00:23:44,360 --> 00:23:47,060 which is basically Ruby done on Java, 772 00:23:47,180 --> 00:23:48,940 because real Ruby kind of blows. 773 00:23:49,420 --> 00:23:50,180 And, uh... 774 00:23:51,700 --> 00:23:52,580 Like, bad. 775 00:23:53,340 --> 00:23:55,740 If you want your eyes to bleed diarrhea, 776 00:23:58,600 --> 00:24:00,320 go read the garbage collection code. 777 00:24:00,460 --> 00:24:02,480 Now, it'll take you a while, because the garbage collection code 778 00:24:02,480 --> 00:24:05,420 is spread over about maybe 7,000 files, you know? 779 00:24:05,460 --> 00:24:07,800 So you'll have to, like, figure out where it all is, but yeah. 780 00:24:08,180 --> 00:24:09,960 Just go read the garbage collection code for Ruby. 781 00:24:11,860 --> 00:24:12,910 Java is great, 782 00:24:13,570 --> 00:24:14,950 but kind of on the slow side. 783 00:24:15,110 --> 00:24:15,470 So you'll see. 784 00:24:15,590 --> 00:24:18,070 I mean, it takes, like, you know, 30 seconds to start up the client stuff. 785 00:24:18,290 --> 00:24:20,390 But it's a lot of fun, because what I can do is then 786 00:24:20,390 --> 00:24:22,410 I can use a nice kind of fairly proven platform 787 00:24:22,410 --> 00:24:23,810 that's been pounded on a while, 788 00:24:23,950 --> 00:24:25,830 and then I can get some JRuby love, 789 00:24:25,950 --> 00:24:27,710 and I can use my Ruby language and whatnot. 790 00:24:28,090 --> 00:24:31,910 And actually, I don't necessarily prefer or not prefer Ruby. 791 00:24:32,090 --> 00:24:34,890 It's just that a lot of people who are interested in the client know Ruby. 792 00:24:35,030 --> 00:24:36,450 So they'll be able to go and write plug-ins. 793 00:24:36,510 --> 00:24:38,170 They'll be interested in playing with it and everything. 794 00:24:39,750 --> 00:24:41,910 And all this stuff is GPLed free. 795 00:24:42,630 --> 00:24:42,970 It's open. 796 00:24:43,210 --> 00:24:44,030 You guys can grab it. 797 00:24:44,070 --> 00:24:44,510 You can do it. 798 00:24:44,570 --> 00:24:45,710 I'm not making any money off it. 799 00:24:45,770 --> 00:24:46,730 I just want people to play with it. 800 00:24:46,790 --> 00:24:47,230 It's totally fun. 801 00:24:49,050 --> 00:24:51,050 So one other thing I've done is I've tried to implement 802 00:24:51,050 --> 00:24:52,910 some really secure coding practices. 803 00:24:54,410 --> 00:24:57,630 And what I'm doing is kind of like a self-analysis, 804 00:24:57,670 --> 00:24:59,390 a statistical self-analysis of this. 805 00:24:59,510 --> 00:25:00,890 So as I code... 806 00:25:02,450 --> 00:25:02,770 Oh. 807 00:25:06,850 --> 00:25:07,470 All right, good. 808 00:25:08,070 --> 00:25:10,110 The guy kept telling me that my resolution was insane, 809 00:25:10,190 --> 00:25:11,070 so maybe I burned that one out. 810 00:25:13,290 --> 00:25:16,610 So what I do is I run Valgrind on my stuff all the time. 811 00:25:16,670 --> 00:25:19,270 I have a testing suite that reruns every time I do a build. 812 00:25:19,410 --> 00:25:21,110 And it just sits there and just rolls in a loop. 813 00:25:21,310 --> 00:25:22,870 And then I have these stats that print out, 814 00:25:22,930 --> 00:25:24,930 like how many stack buffer overflows I've had 815 00:25:24,930 --> 00:25:27,810 and how many null pointers and how many errors and messages 816 00:25:27,810 --> 00:25:30,150 and how many other messages I do. 817 00:25:30,470 --> 00:25:31,750 And Valgrind is fantastic. 818 00:25:32,070 --> 00:25:35,090 If you are working on C and you're not running your stuff under Valgrind, 819 00:25:35,190 --> 00:25:36,970 you're a fucking moron, all right? 820 00:25:37,430 --> 00:25:38,770 I mean, just straight up. 821 00:25:38,830 --> 00:25:41,190 Or Purify is another commercial one if you want to do that. 822 00:25:41,190 --> 00:25:42,910 Valgrind is great, though, because it's free. 823 00:25:43,050 --> 00:25:43,550 It works everywhere. 824 00:25:43,830 --> 00:25:46,310 All you Mac fans, I think it used to work on PowerPC 825 00:25:46,310 --> 00:25:48,150 and they switched to Intel chips, 826 00:25:48,270 --> 00:25:48,790 so now you're screwed. 827 00:25:48,930 --> 00:25:49,650 They just don't care anymore. 828 00:25:50,190 --> 00:25:51,870 But under Linux, it's great. 829 00:25:52,070 --> 00:25:53,330 And you basically run your source code. 830 00:25:53,730 --> 00:25:54,790 It works really good. 831 00:25:55,170 --> 00:25:56,090 Does its stuff. 832 00:25:56,650 --> 00:25:59,470 Basically prints out wherever all the source lines that you have, 833 00:26:00,310 --> 00:26:03,010 buffer overflows, null pointer dereferences, 834 00:26:03,670 --> 00:26:05,330 trying to use memory wrong. 835 00:26:05,770 --> 00:26:09,590 And by doing this, I'm basically doing a statistical analysis 836 00:26:09,590 --> 00:26:10,930 of all my stuff. 837 00:26:11,330 --> 00:26:12,090 Calculating these numbers. 838 00:26:12,270 --> 00:26:13,910 And at the end of each release, 839 00:26:14,410 --> 00:26:15,990 I go in and calculate the statistics 840 00:26:15,990 --> 00:26:18,490 and try to figure out how many defects I might have injected 841 00:26:18,490 --> 00:26:19,890 versus coding or testing. 842 00:26:20,530 --> 00:26:21,330 It's completely nerdy. 843 00:26:21,830 --> 00:26:22,550 It's so weird. 844 00:26:22,830 --> 00:26:24,090 I have stats up in graphs. 845 00:26:24,350 --> 00:26:25,430 You have to kind of get into statistics. 846 00:26:25,690 --> 00:26:27,210 But if people are interested in that, let me know. 847 00:26:27,630 --> 00:26:29,770 It's one of the things that I'm doing to just kind of play with 848 00:26:29,770 --> 00:26:31,270 how can you write secure code. 849 00:26:31,470 --> 00:26:32,650 Everyone tells you write secure code, 850 00:26:32,770 --> 00:26:34,730 but they don't know how to actually tell you how to do it. 851 00:26:34,790 --> 00:26:35,650 It's a bunch of voodoo. 852 00:26:35,830 --> 00:26:38,470 So this is kind of going at it through the back end. 853 00:26:38,730 --> 00:26:40,670 Write a tool that's really good in tests and stuff 854 00:26:40,670 --> 00:26:42,270 that tell you when you're not writing secure code. 855 00:26:42,430 --> 00:26:44,690 And then use statistics to kind of keep it low. 856 00:26:45,250 --> 00:26:46,230 Keep your stats low. 857 00:26:48,070 --> 00:26:50,830 So what I'm testing when I do statistical quality control stuff 858 00:26:50,830 --> 00:26:52,770 is how many valgrind errors I get. 859 00:26:53,570 --> 00:26:55,190 Unit errors and logged errors. 860 00:26:55,390 --> 00:26:56,670 So that's the program itself saying, 861 00:26:56,790 --> 00:26:58,450 I found this is wrong, that's wrong. 862 00:26:59,710 --> 00:27:02,770 And normally when you code in some of these new fancy languages, 863 00:27:02,970 --> 00:27:04,330 you don't have these problems, right? 864 00:27:04,410 --> 00:27:05,930 You don't have buffer overflows so much or anything. 865 00:27:06,150 --> 00:27:08,430 Well, you're supposed to not have them, but yeah. 866 00:27:08,790 --> 00:27:10,230 And when you code in C, 867 00:27:10,230 --> 00:27:11,310 you have all these buffer overflows 868 00:27:11,310 --> 00:27:12,490 and memory problems and memory leaks. 869 00:27:12,650 --> 00:27:14,250 So by running it under a tool like this 870 00:27:14,250 --> 00:27:15,230 and then keeping track of it, 871 00:27:15,310 --> 00:27:17,090 you can actually keep your code small and secure. 872 00:27:17,750 --> 00:27:20,050 But the problem is that it's really tedious. 873 00:27:20,290 --> 00:27:22,070 So this is why I didn't do the client in C. 874 00:27:22,270 --> 00:27:24,110 It was just too much for me to do 875 00:27:24,110 --> 00:27:25,990 a nice GUI client and everything in it. 876 00:27:27,850 --> 00:27:30,930 And I also review my code fairly frequently. 877 00:27:31,270 --> 00:27:32,970 I'll take a source file and I'll open it 878 00:27:32,970 --> 00:27:33,830 and I'll just go back through. 879 00:27:33,970 --> 00:27:36,690 And I'll actually go bottom up, top down, try to review it. 880 00:27:37,010 --> 00:27:39,050 But I really do want to get other people 881 00:27:39,050 --> 00:27:40,150 to be able to go in and review the code 882 00:27:40,150 --> 00:27:41,110 and check out the source and everything. 883 00:27:44,650 --> 00:27:46,390 And then when I code in C, 884 00:27:46,470 --> 00:27:47,730 I'm using this library called B-string. 885 00:27:48,170 --> 00:27:49,250 Everything is pre-sized. 886 00:27:49,350 --> 00:27:50,410 Like you notice when I did the protocol, 887 00:27:50,530 --> 00:27:51,690 from the base up, it's pre-sized. 888 00:27:51,770 --> 00:27:52,870 It knows how big everything is. 889 00:27:53,130 --> 00:27:55,130 Like today when I said I had that bug, 890 00:27:55,550 --> 00:27:57,250 it was actually given the wrong frame size. 891 00:27:57,810 --> 00:28:00,030 And that actually just turned into a protocol error. 892 00:28:00,210 --> 00:28:01,050 The server didn't crash. 893 00:28:01,290 --> 00:28:02,690 It didn't read the wrong amount of data. 894 00:28:02,870 --> 00:28:03,630 It just worked fine. 895 00:28:05,610 --> 00:28:06,630 So when I do this, 896 00:28:06,730 --> 00:28:09,030 I'm also doing kind of a belts and suspensions 897 00:28:09,050 --> 00:28:09,970 suspenders style of programming. 898 00:28:10,170 --> 00:28:12,570 You ever see those idiots who walk around in your office? 899 00:28:12,790 --> 00:28:15,290 They have the suit, the belts, and the suspenders 900 00:28:15,290 --> 00:28:16,510 just in case their pants fall? 901 00:28:18,230 --> 00:28:19,410 Belts and suspenders programming. 902 00:28:19,990 --> 00:28:21,570 Java is belts and suspenders programming. 903 00:28:21,850 --> 00:28:24,190 I want a string, variable name, equals a string. 904 00:28:24,430 --> 00:28:26,350 I said I wanted a string, new, and then... 905 00:28:26,910 --> 00:28:27,950 That's belts and suspenders programming. 906 00:28:28,090 --> 00:28:29,510 Just in case you don't get a string. 907 00:28:29,650 --> 00:28:30,350 You've got to make sure it's a string. 908 00:28:30,450 --> 00:28:31,950 Three times, four times, five times. 909 00:28:32,030 --> 00:28:32,610 Just in case. 910 00:28:33,310 --> 00:28:34,550 Because you might not get a string. 911 00:28:35,870 --> 00:28:37,630 Because nobody's doing type inference, right? 912 00:28:37,930 --> 00:28:38,330 No. 913 00:28:39,890 --> 00:28:41,150 Haskell's another belts and suspenders 914 00:28:41,150 --> 00:28:41,930 kind of style of programming. 915 00:28:42,290 --> 00:28:43,850 Programmers shouldn't worry about code execution. 916 00:28:44,530 --> 00:28:45,890 What the fuck are you talking about? 917 00:28:45,950 --> 00:28:47,250 That's the whole point of writing a program. 918 00:28:51,350 --> 00:28:53,450 So with C, the belts and suspenders 919 00:28:53,450 --> 00:28:55,050 that you have to do, you have to do this, 920 00:28:55,150 --> 00:28:56,690 is always checking return values 921 00:28:57,130 --> 00:28:59,430 and then always making sure that you bail out 922 00:28:59,430 --> 00:29:00,810 and always making sure you clean up. 923 00:29:01,010 --> 00:29:01,290 Okay. 924 00:29:01,530 --> 00:29:03,550 So what I've got is these really nifty macros 925 00:29:03,550 --> 00:29:04,290 that kind of do that. 926 00:29:04,450 --> 00:29:05,710 So if you're reading through the code 927 00:29:05,710 --> 00:29:06,830 and you go, macros, ah! 928 00:29:07,410 --> 00:29:09,030 I'm basically using the C preprocessor 929 00:29:09,030 --> 00:29:10,110 as a code generator. 930 00:29:10,410 --> 00:29:11,730 And it's code generating me 931 00:29:11,730 --> 00:29:13,410 this ghetto style exception handling. 932 00:29:14,150 --> 00:29:14,890 And it works. 933 00:29:16,010 --> 00:29:17,970 But, you know, I kind of want to do something different. 934 00:29:18,110 --> 00:29:21,010 So I'm looking to maybe write a little bit of a mod to C 935 00:29:21,010 --> 00:29:22,370 that I would best play with. 936 00:29:23,150 --> 00:29:25,110 But this is the kind of program that I'm doing 937 00:29:25,110 --> 00:29:26,330 to make sure that the hub stays up. 938 00:29:26,430 --> 00:29:28,190 And it's been running pretty successfully so far. 939 00:29:28,290 --> 00:29:29,190 I mean, it hasn't crashed or anything. 940 00:29:31,150 --> 00:29:32,170 Oh, like four, so. 941 00:29:33,910 --> 00:29:35,230 She asked what is the most users. 942 00:29:35,430 --> 00:29:37,310 Like, I think 16 at tops, right? 943 00:29:37,530 --> 00:29:38,310 It's really small. 944 00:29:38,310 --> 00:29:39,770 But I pound the hell out of it. 945 00:29:39,850 --> 00:29:40,690 What I would like, 946 00:29:40,750 --> 00:29:41,910 and the reason why I'm kind of coming here 947 00:29:41,910 --> 00:29:43,050 and being a little obnoxious, 948 00:29:43,130 --> 00:29:44,310 is I'm sure I've pissed off 949 00:29:44,310 --> 00:29:46,070 some really smart person out there. 950 00:29:46,250 --> 00:29:47,250 And they're going to go in 951 00:29:47,250 --> 00:29:48,670 and really just rape this thing. 952 00:29:50,310 --> 00:29:51,730 I would love to see a picture 953 00:29:51,730 --> 00:29:53,770 of like somebody like bent over a barrel 954 00:29:53,770 --> 00:29:55,690 and, you know, I owned your code. 955 00:29:56,010 --> 00:29:56,410 Cool. 956 00:29:57,510 --> 00:29:57,910 Where? 957 00:29:59,230 --> 00:29:59,990 That'd be great. 958 00:30:02,190 --> 00:30:03,910 So one of the things I'm trying out also 959 00:30:03,910 --> 00:30:05,970 is the server always change routes 960 00:30:05,970 --> 00:30:08,290 into a directory, right? 961 00:30:08,310 --> 00:30:10,950 I don't know if there's too many other servers that do this, 962 00:30:11,030 --> 00:30:12,310 but this one, when it daemonizes, 963 00:30:12,330 --> 00:30:13,770 it always changes routes into a directory. 964 00:30:13,950 --> 00:30:14,650 So if it gets compromised, 965 00:30:14,970 --> 00:30:16,350 it's just you have that one directory. 966 00:30:17,310 --> 00:30:18,450 I'm not sure if I did it right. 967 00:30:18,650 --> 00:30:21,270 So if anyone knows how you're supposed to do it right, 968 00:30:21,350 --> 00:30:21,630 let me know. 969 00:30:21,870 --> 00:30:23,270 I called some function called daemon. 970 00:30:23,450 --> 00:30:25,010 So I don't know. 971 00:30:25,010 --> 00:30:25,750 Does Linux do that right? 972 00:30:26,010 --> 00:30:26,430 We'll see. 973 00:30:27,990 --> 00:30:29,890 I don't leave any resources open, really. 974 00:30:29,990 --> 00:30:32,090 Like I said, I try to run everything I can in RAM. 975 00:30:32,250 --> 00:30:33,930 And it only opens files periodically. 976 00:30:34,770 --> 00:30:36,370 So the directory that it changes to 977 00:30:36,370 --> 00:30:37,770 just has data that the hub needs. 978 00:30:37,850 --> 00:30:38,130 That's it. 979 00:30:38,310 --> 00:30:39,310 It doesn't have anything else. 980 00:30:42,450 --> 00:30:44,210 Ah, so let's do a practical demonstration. 981 00:30:44,570 --> 00:30:45,970 This is a sort of practical demonstration. 982 00:30:48,490 --> 00:30:49,830 So over there is the chat client. 983 00:30:50,790 --> 00:30:52,130 And you can see it's super fancy. 984 00:30:55,910 --> 00:30:57,710 Now, some interesting things about it is 985 00:30:57,710 --> 00:30:59,150 I'm a huge fan of parsers. 986 00:30:59,250 --> 00:31:01,570 When you do a protocol, you're translating text. 987 00:31:01,930 --> 00:31:05,370 And parsers are the most well-established, 988 00:31:05,890 --> 00:31:08,290 researched way of properly translating text. 989 00:31:08,670 --> 00:31:09,490 That's pretty much what you're doing. 990 00:31:09,670 --> 00:31:10,790 So I write a lot of parsers. 991 00:31:11,590 --> 00:31:14,350 Most people, when they write network protocols and servers, 992 00:31:14,470 --> 00:31:15,390 they do this by hand. 993 00:31:15,530 --> 00:31:16,670 And that's how you inject defects. 994 00:31:17,250 --> 00:31:18,590 So if you have a parser generator, 995 00:31:18,890 --> 00:31:20,550 and it's well-written and well-established, 996 00:31:20,570 --> 00:31:22,210 and you can generate something that parses text, 997 00:31:22,870 --> 00:31:25,250 then you remove, one, a source of errors, 998 00:31:25,290 --> 00:31:26,550 and two, a source of time sync. 999 00:31:27,690 --> 00:31:29,930 Some quick analysis that I did of the Apache source 1000 00:31:29,930 --> 00:31:32,630 is that a lot of the defects are just in the handwritten parser for HTTP. 1001 00:31:33,250 --> 00:31:34,270 So when I wrote Mongrel, 1002 00:31:34,370 --> 00:31:35,970 I used this parser generator called Ragil. 1003 00:31:36,350 --> 00:31:37,250 And it's, you know, 1004 00:31:37,250 --> 00:31:39,910 like every standard parser knows exactly when it's done, 1005 00:31:40,070 --> 00:31:40,670 when it's in error, 1006 00:31:40,790 --> 00:31:42,130 when it's supposed to be working right. 1007 00:31:42,790 --> 00:31:44,010 When I did this, 1008 00:31:44,050 --> 00:31:47,250 we were running the project with a PIP. 1009 00:31:47,830 --> 00:31:49,250 It's like the OpenID project. 1010 00:31:49,850 --> 00:31:51,750 And someone started pounding the server 1011 00:31:51,750 --> 00:31:53,230 and hitting it with security attacks. 1012 00:31:53,650 --> 00:31:55,330 And then Mongrel was just going, 1013 00:31:55,470 --> 00:31:56,630 oh, that's not valid HTTP, 1014 00:31:56,950 --> 00:31:57,710 that's not valid HTTP, 1015 00:31:57,870 --> 00:31:58,410 and just blocking. 1016 00:31:58,530 --> 00:32:00,450 And it blocked about 80% of the attacks, straight off. 1017 00:32:00,750 --> 00:32:02,630 It wasn't doing anything security-wise. 1018 00:32:02,730 --> 00:32:03,390 It wasn't checking anything. 1019 00:32:03,510 --> 00:32:05,570 It was just making sure it conformed to the standard. 1020 00:32:05,810 --> 00:32:07,230 And it was a fairly loose process. 1021 00:32:07,250 --> 00:32:08,090 It was a loose parser, 1022 00:32:08,090 --> 00:32:09,210 because the browsers don't get it right. 1023 00:32:09,750 --> 00:32:10,990 So this is the thing that you get. 1024 00:32:11,110 --> 00:32:14,170 When you write your parser by hand, 1025 00:32:14,310 --> 00:32:16,750 you're basically making a blacklist for the input. 1026 00:32:17,030 --> 00:32:17,830 You're basically saying, 1027 00:32:17,950 --> 00:32:19,030 this is how it should go out, 1028 00:32:19,090 --> 00:32:20,230 oh, except this, except that, 1029 00:32:20,270 --> 00:32:21,290 except that, except that. 1030 00:32:21,890 --> 00:32:22,970 When you write a parser, 1031 00:32:22,990 --> 00:32:24,010 you're basically making a whitelist. 1032 00:32:24,090 --> 00:32:25,630 This is the only allowed grammar 1033 00:32:25,630 --> 00:32:27,030 for this particular text stream. 1034 00:32:27,770 --> 00:32:29,510 And that's pretty much the standard 1035 00:32:29,510 --> 00:32:30,410 when it comes to security, 1036 00:32:30,610 --> 00:32:32,230 is you use whitelists wherever you can. 1037 00:32:32,790 --> 00:32:34,830 And that's why when I do parsers, 1038 00:32:34,830 --> 00:32:35,610 when I do protocols now, 1039 00:32:35,610 --> 00:32:37,190 it's always a parser. 1040 00:32:37,210 --> 00:32:38,570 Even with this one, with U2. 1041 00:32:38,950 --> 00:32:40,610 So on this, there's a parser 1042 00:32:40,610 --> 00:32:42,050 that actually translates the... 1043 00:32:48,870 --> 00:32:50,610 So it actually translates the emoticons 1044 00:32:50,610 --> 00:32:51,990 and the text and turns it red and everything. 1045 00:32:52,130 --> 00:32:52,970 That's actually parsed. 1046 00:32:53,190 --> 00:32:54,330 So it's actually parsing it, 1047 00:32:54,410 --> 00:32:55,010 tokenizing it, 1048 00:32:55,050 --> 00:32:56,070 and then handing it to the chat pane. 1049 00:32:56,470 --> 00:32:59,330 So that makes it harder for someone on the other end 1050 00:32:59,330 --> 00:33:01,090 to send you stuff that would bust your client. 1051 00:33:01,290 --> 00:33:03,190 Because when it comes back from the server, 1052 00:33:03,310 --> 00:33:04,810 it gets parsed and translated. 1053 00:33:05,610 --> 00:33:06,610 And if it can't parse it, 1054 00:33:06,650 --> 00:33:07,610 it just prints it out as text. 1055 00:33:07,870 --> 00:33:09,710 And since I have the concept of a blob, 1056 00:33:10,550 --> 00:33:11,710 then it's just a binary thing, 1057 00:33:11,750 --> 00:33:12,330 it gets printed out. 1058 00:33:12,670 --> 00:33:14,170 Now I'm sure there's probably something weird 1059 00:33:14,170 --> 00:33:15,310 in the Java chat pane 1060 00:33:15,310 --> 00:33:16,370 that makes it so you can totally 1061 00:33:16,370 --> 00:33:17,850 hack the hell out of that thing, but... 1062 00:33:22,870 --> 00:33:23,490 Can you hold it? 1063 00:33:24,550 --> 00:33:25,450 Yeah, can you wait a little bit? 1064 00:33:25,830 --> 00:33:27,290 Yeah, you can totally denial of service that way. 1065 00:33:27,410 --> 00:33:27,970 But yeah, just a sec. 1066 00:33:29,990 --> 00:33:31,830 What we have down at the bottom, 1067 00:33:31,890 --> 00:33:33,070 this is just simple JRuby. 1068 00:33:35,030 --> 00:33:37,210 And that's just the standard chat pane there. 1069 00:33:37,290 --> 00:33:38,070 Nothing big to it. 1070 00:33:39,130 --> 00:33:39,850 The code... 1071 00:33:44,210 --> 00:33:45,390 So that's how it's... 1072 00:33:45,390 --> 00:33:47,450 That's kind of the core of the code in Ruby 1073 00:33:47,450 --> 00:33:49,290 that parses out the stackish protocol. 1074 00:33:51,110 --> 00:33:52,070 I mean, that's pretty much it. 1075 00:33:52,370 --> 00:33:54,370 Since it's a stack-based protocol, 1076 00:33:54,530 --> 00:33:57,650 all you have to do is just lexically analyze each piece 1077 00:33:57,650 --> 00:33:59,190 and then follow the stack. 1078 00:33:59,650 --> 00:34:01,350 You don't have to actually do any grammar 1079 00:34:01,350 --> 00:34:02,070 or anything like that. 1080 00:34:02,070 --> 00:34:05,710 So this removes one more kind of pain point 1081 00:34:05,710 --> 00:34:06,750 or potential attack area. 1082 00:34:06,990 --> 00:34:08,710 You can actually have some grammars 1083 00:34:08,710 --> 00:34:10,970 that have recursive elements that can be attacked. 1084 00:34:11,250 --> 00:34:13,150 But this is just a straight lexing. 1085 00:34:13,430 --> 00:34:14,710 Now this is Ruby code. 1086 00:34:14,970 --> 00:34:17,650 So this is kind of using the Ruby string scanner, 1087 00:34:17,930 --> 00:34:20,670 and Ruby's known to have some problems. 1088 00:34:21,050 --> 00:34:21,570 So... 1089 00:34:22,290 --> 00:34:23,330 And then... 1090 00:34:26,650 --> 00:34:27,690 This is... 1091 00:34:28,310 --> 00:34:28,830 Ah. 1092 00:34:29,050 --> 00:34:31,670 So this is the code that's actually doing the swing GUI. 1093 00:34:31,670 --> 00:34:34,530 And if you notice, it's doing Java. 1094 00:34:34,710 --> 00:34:35,670 It's using swing and everything, 1095 00:34:35,770 --> 00:34:37,430 but that doesn't look like swing code. 1096 00:34:38,470 --> 00:34:40,150 And what this is, is this is basically 1097 00:34:40,630 --> 00:34:42,730 just a Ruby library I wrote called profligacy. 1098 00:34:42,970 --> 00:34:45,310 And profligacy basically makes it nicer to do swing. 1099 00:34:46,130 --> 00:34:47,710 The reason why I'm showing you this stuff 1100 00:34:47,710 --> 00:34:49,010 is that if you want to contribute, 1101 00:34:49,210 --> 00:34:51,290 this is kind of the most difficult stuff you have to do. 1102 00:34:51,390 --> 00:34:53,030 If you want to work on the client and play around with it, 1103 00:34:53,510 --> 00:34:56,150 this is basically fun kind of Ruby hacking. 1104 00:34:56,370 --> 00:34:58,430 If you want to get in on the server and see how that's going, 1105 00:34:58,550 --> 00:34:59,430 then you can do that too. 1106 00:35:00,850 --> 00:35:03,830 And this is actually the entire chat pane 1107 00:35:03,830 --> 00:35:04,490 that you're looking at. 1108 00:35:06,470 --> 00:35:07,610 Is that fairly readable? 1109 00:35:08,350 --> 00:35:09,090 Kind of readable? 1110 00:35:09,390 --> 00:35:10,050 Sucks ass? 1111 00:35:11,650 --> 00:35:12,290 Who's asleep? 1112 00:35:15,470 --> 00:35:15,910 Sorry. 1113 00:35:16,990 --> 00:35:17,670 I'm trying. 1114 00:35:20,530 --> 00:35:22,170 And then if you look off to the right, 1115 00:35:22,290 --> 00:35:23,350 the bottom right over there, 1116 00:35:23,430 --> 00:35:25,670 actually I can swap this. 1117 00:35:28,370 --> 00:35:30,230 I did a presentation in Boston. 1118 00:35:30,770 --> 00:35:33,230 The only question I got at the end from most people was, 1119 00:35:33,310 --> 00:35:34,890 what's that window manager you're using? 1120 00:35:37,430 --> 00:35:40,770 I'm like, I just talked for an hour about cool cryptography and stuff, 1121 00:35:40,850 --> 00:35:41,730 and you want to know my window manager? 1122 00:35:41,850 --> 00:35:42,530 Yeah, it's really neat. 1123 00:35:45,450 --> 00:35:46,090 It's DWM. 1124 00:35:46,630 --> 00:35:48,250 It's by the same guy who did WMII. 1125 00:35:48,430 --> 00:35:49,130 It's freaky. 1126 00:35:49,290 --> 00:35:50,290 If you guys want to see it, 1127 00:35:50,310 --> 00:35:51,230 meet me in the Q&A room, 1128 00:35:51,330 --> 00:35:52,110 or just meet me afterwards. 1129 00:35:52,810 --> 00:35:53,630 If you see over there, 1130 00:35:53,670 --> 00:35:55,090 see that stuff where it's showing transitions, 1131 00:35:55,670 --> 00:35:57,090 it showed the messages. 1132 00:35:57,690 --> 00:35:58,010 Okay. 1133 00:35:58,270 --> 00:35:59,270 The hub is actually, 1134 00:35:59,370 --> 00:36:01,550 the core of the hub is based on a finite state machine. 1135 00:36:01,890 --> 00:36:02,710 So what happens is, 1136 00:36:02,770 --> 00:36:03,910 those are events that are going through, 1137 00:36:04,010 --> 00:36:04,950 and the hub's processing them 1138 00:36:04,950 --> 00:36:05,990 and telling you where it goes. 1139 00:36:06,370 --> 00:36:06,970 This is, again, 1140 00:36:07,070 --> 00:36:09,210 it's making a whitelist for how the hub should behave. 1141 00:36:09,910 --> 00:36:11,510 So if it goes into any bad states, 1142 00:36:11,610 --> 00:36:12,550 if it goes into any direction, 1143 00:36:12,710 --> 00:36:13,610 like if someone figures out a way 1144 00:36:13,610 --> 00:36:14,690 to try to get it to do something 1145 00:36:14,690 --> 00:36:15,450 it wasn't anticipating, 1146 00:36:15,770 --> 00:36:16,410 it should abort. 1147 00:36:16,610 --> 00:36:17,690 It should bail out. 1148 00:36:18,590 --> 00:36:19,550 That's kind of the advantage 1149 00:36:19,550 --> 00:36:20,950 of using a parser in state machines, 1150 00:36:21,130 --> 00:36:22,870 is that if you have these mechanisms 1151 00:36:22,870 --> 00:36:24,290 to make it a whitelist 1152 00:36:24,290 --> 00:36:25,410 for what the program should be doing, 1153 00:36:25,430 --> 00:36:25,650 it's better than having it 1154 00:36:25,670 --> 00:36:26,110 specify it, 1155 00:36:26,150 --> 00:36:27,630 then you get a better response 1156 00:36:27,630 --> 00:36:28,430 when it's attacked. 1157 00:36:28,810 --> 00:36:30,270 The response in this server 1158 00:36:30,270 --> 00:36:31,590 is basically just a crash, 1159 00:36:31,790 --> 00:36:32,210 right, 1160 00:36:32,330 --> 00:36:32,770 to abort. 1161 00:36:33,170 --> 00:36:34,670 But you can actually handle errors 1162 00:36:34,670 --> 00:36:35,390 a lot better. 1163 00:36:41,590 --> 00:36:42,970 So there's some security flaws. 1164 00:36:43,690 --> 00:36:44,630 The 10 minute sign. 1165 00:36:45,290 --> 00:36:47,030 So the security flaws that are in it 1166 00:36:47,030 --> 00:36:49,190 are mostly because I'm still debugging it 1167 00:36:49,190 --> 00:36:50,070 and still putting it together. 1168 00:36:50,270 --> 00:36:51,270 So right now the header, 1169 00:36:51,430 --> 00:36:52,790 there's an ID on each message 1170 00:36:52,790 --> 00:36:53,590 that's just sequential. 1171 00:36:53,790 --> 00:36:54,830 That's so that I can go 1172 00:36:54,830 --> 00:36:55,650 and actually see what messages 1173 00:36:55,670 --> 00:36:56,210 might have died 1174 00:36:56,210 --> 00:36:56,930 and stuff like that. 1175 00:36:58,170 --> 00:36:59,450 There's no versioning on the packets. 1176 00:36:59,730 --> 00:37:01,310 It's pretty much just in flux, 1177 00:37:01,490 --> 00:37:02,730 so I say here's a new version, 1178 00:37:02,790 --> 00:37:03,270 go grab it, 1179 00:37:03,310 --> 00:37:04,070 and then people use it. 1180 00:37:04,390 --> 00:37:05,430 Eventually we'll put a version 1181 00:37:05,430 --> 00:37:05,890 in the header 1182 00:37:05,890 --> 00:37:06,810 so that keeps track of it. 1183 00:37:07,990 --> 00:37:09,790 And the cryptography that I'm using, 1184 00:37:09,850 --> 00:37:10,870 how I'm using the cryptography, 1185 00:37:10,950 --> 00:37:11,530 hasn't been evaluated. 1186 00:37:11,930 --> 00:37:13,210 So the library that I'm using 1187 00:37:13,210 --> 00:37:14,450 has been evaluated by a few companies, 1188 00:37:14,590 --> 00:37:15,730 but my stuff actually 1189 00:37:15,730 --> 00:37:16,370 hasn't been evaluated. 1190 00:37:20,110 --> 00:37:20,650 All right. 1191 00:37:21,230 --> 00:37:22,250 We got 10 minutes, 1192 00:37:22,390 --> 00:37:24,270 so I'll take like two questions. 1193 00:37:26,230 --> 00:37:26,570 Okay. 1194 00:37:27,230 --> 00:37:27,570 Two. 1195 00:37:28,190 --> 00:37:28,750 Go for it. 1196 00:37:34,470 --> 00:37:34,810 Oh. 1197 00:37:35,370 --> 00:37:36,230 Oh, I'm sorry. 1198 00:37:36,310 --> 00:37:36,490 Okay. 1199 00:37:37,270 --> 00:37:37,910 That's the whole point. 1200 00:37:38,030 --> 00:37:38,270 Okay. 1201 00:37:38,630 --> 00:37:39,650 Let's go back over this. 1202 00:37:39,650 --> 00:37:39,790 All right. 1203 00:37:41,010 --> 00:37:42,470 He said I'm a dumbass 1204 00:37:42,470 --> 00:37:43,110 because I'm not talking 1205 00:37:43,110 --> 00:37:43,850 about the revenge system. 1206 00:37:44,570 --> 00:37:44,910 Right? 1207 00:37:45,430 --> 00:37:45,770 Yeah. 1208 00:37:45,830 --> 00:37:46,070 Cool. 1209 00:37:46,370 --> 00:37:47,030 I'm sorry. 1210 00:37:47,190 --> 00:37:47,450 I'm sorry. 1211 00:37:47,550 --> 00:37:48,330 So I went over the protocol 1212 00:37:48,330 --> 00:37:48,690 and everything 1213 00:37:48,690 --> 00:37:50,090 because I figured you guys. 1214 00:37:50,210 --> 00:37:50,550 Look. 1215 00:37:50,550 --> 00:37:51,690 The whole point of U2 1216 00:37:51,690 --> 00:37:53,790 is that you have this revenge system in it, 1217 00:37:53,870 --> 00:37:54,670 and what you're doing is 1218 00:37:54,670 --> 00:37:55,730 when you're chatting in a room, 1219 00:37:56,230 --> 00:37:57,950 we're trying to add the social controls 1220 00:37:57,950 --> 00:37:58,430 that you get 1221 00:37:58,430 --> 00:37:59,770 when you talk to regular people. 1222 00:37:59,970 --> 00:38:00,530 The problem is 1223 00:38:00,530 --> 00:38:01,550 it's an internet protocol, 1224 00:38:01,690 --> 00:38:02,430 so there's no way 1225 00:38:02,430 --> 00:38:03,170 to really enforce things. 1226 00:38:03,510 --> 00:38:04,550 So what it does is 1227 00:38:04,550 --> 00:38:05,790 everyone has a unique key 1228 00:38:05,790 --> 00:38:07,170 and have an invite path 1229 00:38:07,170 --> 00:38:08,210 or who's invited them. 1230 00:38:08,450 --> 00:38:09,610 So when you come in and you talk, 1231 00:38:09,830 --> 00:38:10,710 I kind of know your key. 1232 00:38:10,970 --> 00:38:12,130 And then I'm also able 1233 00:38:12,130 --> 00:38:13,570 to ask the hub info about you. 1234 00:38:13,630 --> 00:38:14,130 I'm going to say, 1235 00:38:14,250 --> 00:38:15,790 hey, who hates this guy? 1236 00:38:15,910 --> 00:38:17,130 Where is this guy coming from? 1237 00:38:17,230 --> 00:38:18,090 Who invited him? 1238 00:38:18,210 --> 00:38:18,450 Okay. 1239 00:38:18,930 --> 00:38:19,790 How many times 1240 00:38:19,790 --> 00:38:20,430 is he being hated? 1241 00:38:20,510 --> 00:38:21,490 What's his average hate level 1242 00:38:21,490 --> 00:38:22,250 for the whole system? 1243 00:38:22,610 --> 00:38:23,830 So that's your first kind 1244 00:38:23,830 --> 00:38:24,710 of line of defense. 1245 00:38:25,070 --> 00:38:25,970 I want to make it 1246 00:38:25,970 --> 00:38:26,890 where the client can go in 1247 00:38:26,890 --> 00:38:27,470 and basically say, 1248 00:38:27,590 --> 00:38:28,890 I don't want to talk to people 1249 00:38:28,890 --> 00:38:30,150 that have this kind of reputation. 1250 00:38:30,930 --> 00:38:31,330 Okay? 1251 00:38:31,770 --> 00:38:33,110 So that gives you your reputation 1252 00:38:33,110 --> 00:38:33,770 and that gives you 1253 00:38:33,770 --> 00:38:34,430 your strong identity. 1254 00:38:34,710 --> 00:38:35,950 Now the revenge part 1255 00:38:35,950 --> 00:38:36,930 is really interesting. 1256 00:38:37,390 --> 00:38:39,010 When I talk to men, 1257 00:38:40,010 --> 00:38:41,130 they go, ooh, revenge. 1258 00:38:42,170 --> 00:38:43,110 When I talk to women, 1259 00:38:43,170 --> 00:38:44,250 they go, ooh, why do you have hate? 1260 00:38:46,390 --> 00:38:48,690 So I have an alternative concept. 1261 00:38:48,970 --> 00:38:49,210 Okay? 1262 00:38:49,790 --> 00:38:50,250 It's actually distance. 1263 00:38:50,610 --> 00:38:51,530 When you hate someone, 1264 00:38:51,830 --> 00:38:52,970 the calculations they do 1265 00:38:52,970 --> 00:38:53,650 give you distance. 1266 00:38:53,990 --> 00:38:55,770 It gives that person distance 1267 00:38:55,770 --> 00:38:56,590 from everybody else. 1268 00:38:56,990 --> 00:38:57,790 So if you imagine 1269 00:38:57,790 --> 00:38:59,150 you're chatting in a room, right? 1270 00:39:00,590 --> 00:39:01,190 Over there. 1271 00:39:01,290 --> 00:39:01,930 And there's some guy 1272 00:39:01,930 --> 00:39:02,930 who's an obnoxious ass. 1273 00:39:03,330 --> 00:39:04,770 What'll end up happening is, 1274 00:39:04,930 --> 00:39:05,690 off to the right 1275 00:39:05,690 --> 00:39:06,390 are people's pictures. 1276 00:39:06,670 --> 00:39:07,750 And what I want to do 1277 00:39:07,750 --> 00:39:09,190 is have four little pictures 1278 00:39:09,190 --> 00:39:09,830 for each person. 1279 00:39:10,090 --> 00:39:10,430 Right? 1280 00:39:10,610 --> 00:39:11,670 You know how people can put 1281 00:39:11,670 --> 00:39:12,450 a little picture on their IM. 1282 00:39:12,610 --> 00:39:13,050 You'll have four. 1283 00:39:13,250 --> 00:39:14,450 One for I'm neutral, 1284 00:39:14,710 --> 00:39:15,550 I'm happy, 1285 00:39:16,110 --> 00:39:16,910 I'm sad, 1286 00:39:17,050 --> 00:39:17,710 and I'm angry. 1287 00:39:17,890 --> 00:39:18,670 And when you hate someone, 1288 00:39:18,950 --> 00:39:19,730 the receiver 1289 00:39:19,790 --> 00:39:20,350 of your hate 1290 00:39:20,350 --> 00:39:21,230 will see your picture change 1291 00:39:21,230 --> 00:39:22,510 to the angry picture. 1292 00:39:23,090 --> 00:39:24,230 And what they'll get is 1293 00:39:24,230 --> 00:39:24,950 this list. 1294 00:39:25,090 --> 00:39:25,970 Joe hates Frank. 1295 00:39:26,070 --> 00:39:26,670 Joe hates Frank. 1296 00:39:26,770 --> 00:39:27,430 Mary hates Frank. 1297 00:39:27,550 --> 00:39:28,250 Alex hates Frank. 1298 00:39:29,550 --> 00:39:30,870 What this translates into, 1299 00:39:31,550 --> 00:39:31,950 technically, 1300 00:39:32,150 --> 00:39:34,110 is that the people 1301 00:39:34,110 --> 00:39:34,970 doing the hating 1302 00:39:35,610 --> 00:39:36,830 pick how much they hate you. 1303 00:39:37,090 --> 00:39:38,550 It's a two to the something. 1304 00:39:38,750 --> 00:39:39,790 So let's say they pick a 16. 1305 00:39:40,430 --> 00:39:42,090 Then that turns into 1306 00:39:42,090 --> 00:39:42,690 a random number 1307 00:39:42,690 --> 00:39:43,150 and the hub says, 1308 00:39:43,370 --> 00:39:43,950 hey, okay, 1309 00:39:44,010 --> 00:39:44,750 in order to do that, 1310 00:39:44,810 --> 00:39:45,510 you gotta pay a tax. 1311 00:39:45,770 --> 00:39:46,610 So you calculate 1312 00:39:46,610 --> 00:39:47,230 some hate first. 1313 00:39:47,670 --> 00:39:48,550 So the hater 1314 00:39:49,070 --> 00:39:49,750 calculates this hate 1315 00:39:49,790 --> 00:39:50,370 at this tax 1316 00:39:50,370 --> 00:39:51,830 and then submits that 1317 00:39:51,830 --> 00:39:52,410 back to the server. 1318 00:39:52,530 --> 00:39:53,210 And it's all signed 1319 00:39:53,210 --> 00:39:54,310 and validated 1320 00:39:54,310 --> 00:39:55,130 with the crypto. 1321 00:39:55,550 --> 00:39:56,210 The hub goes, 1322 00:39:56,310 --> 00:39:56,690 okay, great. 1323 00:39:56,830 --> 00:39:57,690 And it tallies up 1324 00:39:57,690 --> 00:39:58,970 this kind of rolling average 1325 00:39:58,970 --> 00:40:00,210 of everyone who hates 1326 00:40:00,210 --> 00:40:01,090 this person in the room. 1327 00:40:01,370 --> 00:40:02,290 And then every time 1328 00:40:02,290 --> 00:40:03,670 that person who's the receiver 1329 00:40:03,670 --> 00:40:04,410 has to talk, 1330 00:40:04,490 --> 00:40:05,210 they have to calculate 1331 00:40:05,210 --> 00:40:06,290 this hate again and again. 1332 00:40:06,990 --> 00:40:07,930 So this effectively 1333 00:40:07,930 --> 00:40:08,650 slows them down. 1334 00:40:08,790 --> 00:40:09,710 When you get a hate 1335 00:40:09,710 --> 00:40:10,430 that's around, say, 1336 00:40:10,450 --> 00:40:11,190 a two to the four, 1337 00:40:11,290 --> 00:40:11,930 two to the ten, 1338 00:40:12,050 --> 00:40:13,130 it's not too much 1339 00:40:13,130 --> 00:40:13,650 of a penalty. 1340 00:40:13,830 --> 00:40:14,530 It's like maybe 1341 00:40:14,530 --> 00:40:15,770 a second at the most, 1342 00:40:15,770 --> 00:40:16,630 two seconds at the most 1343 00:40:16,630 --> 00:40:17,390 in most modern computers. 1344 00:40:17,990 --> 00:40:19,410 When the calculation 1345 00:40:19,790 --> 00:40:20,030 goes up to around 1346 00:40:20,030 --> 00:40:20,730 two to the sixteen 1347 00:40:20,730 --> 00:40:21,330 to say about 1348 00:40:21,330 --> 00:40:21,890 two to the twenty, 1349 00:40:21,970 --> 00:40:22,650 it turns into minutes, 1350 00:40:22,890 --> 00:40:23,590 tens of minutes. 1351 00:40:24,050 --> 00:40:25,350 When it goes above twenty, 1352 00:40:25,410 --> 00:40:26,470 it turns into like hours 1353 00:40:26,930 --> 00:40:27,670 because it's fairly 1354 00:40:27,670 --> 00:40:28,130 exponential. 1355 00:40:28,910 --> 00:40:29,770 So what you're getting 1356 00:40:29,770 --> 00:40:31,090 is this kind of tax 1357 00:40:31,090 --> 00:40:32,270 that people have to pay 1358 00:40:32,750 --> 00:40:34,210 to hate someone once. 1359 00:40:34,410 --> 00:40:35,290 And then after that, 1360 00:40:35,350 --> 00:40:36,130 your average is calculated 1361 00:40:36,130 --> 00:40:37,150 based on what they voted 1362 00:40:37,150 --> 00:40:37,610 for you. 1363 00:40:38,570 --> 00:40:39,850 Now, this is kind of 1364 00:40:39,850 --> 00:40:40,310 up in the air. 1365 00:40:40,430 --> 00:40:41,350 What I'm doing is 1366 00:40:41,350 --> 00:40:42,410 calculating information 1367 00:40:42,410 --> 00:40:43,590 and data about 1368 00:40:43,590 --> 00:40:44,190 who hates who 1369 00:40:44,190 --> 00:40:45,550 and using these hate 1370 00:40:45,550 --> 00:40:46,670 calculations as a weighting. 1371 00:40:46,850 --> 00:40:47,670 And then I'm going to be 1372 00:40:47,670 --> 00:40:48,310 using some social 1373 00:40:48,310 --> 00:40:49,070 network analysis. 1374 00:40:49,310 --> 00:40:49,770 There's a really good 1375 00:40:49,790 --> 00:40:50,850 library called iGraph. 1376 00:40:51,270 --> 00:40:52,190 There's another library 1377 00:40:52,190 --> 00:40:52,930 called Prefuse. 1378 00:40:53,270 --> 00:40:54,210 And those are going to be 1379 00:40:54,210 --> 00:40:55,010 part of the visualization. 1380 00:40:55,350 --> 00:40:55,850 As you chat, 1381 00:40:55,970 --> 00:40:56,370 you're going to be able 1382 00:40:56,370 --> 00:40:57,130 to see who hates who 1383 00:40:57,130 --> 00:40:57,790 and get information 1384 00:40:57,790 --> 00:40:58,330 about them, 1385 00:40:58,370 --> 00:40:58,890 get nice graphs. 1386 00:40:59,530 --> 00:41:00,670 So this is all merging 1387 00:41:00,670 --> 00:41:01,270 back into, 1388 00:41:01,450 --> 00:41:02,310 you have this retribution 1389 00:41:02,310 --> 00:41:04,050 that translates into 1390 00:41:04,050 --> 00:41:04,630 your reputation 1391 00:41:04,630 --> 00:41:05,750 and that impacts 1392 00:41:05,750 --> 00:41:06,710 your identity online. 1393 00:41:07,030 --> 00:41:07,610 So you're going to be 1394 00:41:07,610 --> 00:41:08,450 building up this identity. 1395 00:41:10,030 --> 00:41:11,130 When you have this 1396 00:41:11,130 --> 00:41:12,110 retribution system, 1397 00:41:12,450 --> 00:41:12,910 right, 1398 00:41:13,050 --> 00:41:14,250 there's some weird things. 1399 00:41:14,390 --> 00:41:15,170 Like, there's a lot 1400 00:41:15,170 --> 00:41:15,990 of stuff I don't know. 1401 00:41:16,130 --> 00:41:16,670 There's all sorts 1402 00:41:16,670 --> 00:41:18,130 of odd social things 1403 00:41:18,130 --> 00:41:18,990 that I don't know about. 1404 00:41:19,070 --> 00:41:19,650 Like, I don't know 1405 00:41:19,790 --> 00:41:20,530 if an average is going 1406 00:41:20,530 --> 00:41:20,930 to be good. 1407 00:41:21,050 --> 00:41:21,690 I don't know if I'm going 1408 00:41:21,690 --> 00:41:22,570 to have to have it reset. 1409 00:41:22,890 --> 00:41:23,610 I don't know if it's going 1410 00:41:23,610 --> 00:41:24,130 to have to decay. 1411 00:41:25,130 --> 00:41:25,910 Something one guy 1412 00:41:25,910 --> 00:41:26,870 recommended is when 1413 00:41:26,870 --> 00:41:27,510 you first join, 1414 00:41:27,630 --> 00:41:28,270 you're a juvenile. 1415 00:41:28,590 --> 00:41:29,590 You get three months 1416 00:41:29,590 --> 00:41:30,490 to be an ass. 1417 00:41:30,810 --> 00:41:31,490 And then you have 1418 00:41:31,490 --> 00:41:33,070 your juvenile record expunged. 1419 00:41:33,710 --> 00:41:34,370 And then you get 1420 00:41:34,370 --> 00:41:34,830 to be an adult. 1421 00:41:35,350 --> 00:41:36,110 And then it applies 1422 00:41:36,110 --> 00:41:36,630 from then on. 1423 00:41:36,730 --> 00:41:37,410 I'm like, that's actually 1424 00:41:37,410 --> 00:41:37,970 a really great idea. 1425 00:41:38,750 --> 00:41:39,490 Another one is, 1426 00:41:40,030 --> 00:41:41,070 for whatever reason, 1427 00:41:41,270 --> 00:41:42,230 and I could go into it more, 1428 00:41:42,450 --> 00:41:43,490 love does not work 1429 00:41:43,490 --> 00:41:43,910 on the internet. 1430 00:41:44,790 --> 00:41:45,110 Okay? 1431 00:41:45,150 --> 00:41:45,750 It just doesn't work. 1432 00:41:46,210 --> 00:41:47,050 If you have people 1433 00:41:47,050 --> 00:41:47,750 calculate love, 1434 00:41:47,830 --> 00:41:48,730 that's a positive thing. 1435 00:41:49,790 --> 00:41:49,950 They can calculate 1436 00:41:49,950 --> 00:41:50,770 all the positive stuff 1437 00:41:50,770 --> 00:41:51,210 they want. 1438 00:41:51,310 --> 00:41:52,170 It doesn't penalize anyone. 1439 00:41:52,610 --> 00:41:53,750 But hate, nobody wants 1440 00:41:53,750 --> 00:41:54,390 to calculate that. 1441 00:41:54,490 --> 00:41:54,950 It's a penalty. 1442 00:41:55,270 --> 00:41:56,050 So being forced 1443 00:41:56,050 --> 00:41:56,870 to calculate that acts 1444 00:41:56,870 --> 00:41:58,150 as a deterrent. 1445 00:41:58,370 --> 00:41:59,110 Now, I'm pretty sure 1446 00:41:59,110 --> 00:41:59,570 there's some kind 1447 00:41:59,570 --> 00:42:01,270 of philosophical basis 1448 00:42:01,270 --> 00:42:01,930 for this or whatever. 1449 00:42:02,070 --> 00:42:02,510 But basically, 1450 00:42:02,950 --> 00:42:04,110 I can't let you pay 1451 00:42:04,110 --> 00:42:04,810 down your hate. 1452 00:42:05,570 --> 00:42:06,490 What I can do, 1453 00:42:06,950 --> 00:42:07,810 and what I'm toying 1454 00:42:07,810 --> 00:42:08,250 with also, 1455 00:42:08,330 --> 00:42:09,910 is you could pay 1456 00:42:11,090 --> 00:42:12,050 to some charity 1457 00:42:12,050 --> 00:42:12,870 by doing some work 1458 00:42:12,870 --> 00:42:13,150 for them, 1459 00:42:13,250 --> 00:42:14,010 say SETI at home 1460 00:42:14,010 --> 00:42:14,750 or something like that. 1461 00:42:14,970 --> 00:42:15,830 And then the charity 1462 00:42:15,830 --> 00:42:16,490 will tell the hub, 1463 00:42:16,610 --> 00:42:17,530 yeah, that guy's a good guy. 1464 00:42:17,630 --> 00:42:18,270 Pay his hate down 1465 00:42:19,790 --> 00:42:20,350 or something like that. 1466 00:42:20,450 --> 00:42:21,310 So you do charity work. 1467 00:42:25,470 --> 00:42:25,890 The what? 1468 00:42:27,930 --> 00:42:28,490 No, I'm not. 1469 00:42:29,450 --> 00:42:30,050 Can you tell me later? 1470 00:42:30,470 --> 00:42:30,890 Okay, cool. 1471 00:42:30,990 --> 00:42:31,130 Right. 1472 00:42:35,550 --> 00:42:35,830 Yeah. 1473 00:42:41,890 --> 00:42:42,450 That's part 1474 00:42:42,450 --> 00:42:42,890 of the whole 1475 00:42:42,890 --> 00:42:43,670 social experiment. 1476 00:42:44,170 --> 00:42:44,870 So I want to see 1477 00:42:44,870 --> 00:42:45,550 how this plays out. 1478 00:42:46,150 --> 00:42:46,790 This is the part 1479 00:42:46,790 --> 00:42:47,130 where you're getting 1480 00:42:47,130 --> 00:42:47,950 into wild territory 1481 00:42:47,950 --> 00:42:48,550 where I don't know. 1482 00:42:48,630 --> 00:42:49,210 So this is why 1483 00:42:49,210 --> 00:42:49,770 I'm kind of being 1484 00:42:49,790 --> 00:42:50,590 building in as much 1485 00:42:50,590 --> 00:42:51,350 data analysis 1486 00:42:51,350 --> 00:42:53,030 and research as I can. 1487 00:42:53,190 --> 00:42:54,190 And it could be 1488 00:42:54,190 --> 00:42:54,910 that's the whole, 1489 00:42:54,990 --> 00:42:56,210 like this whole social part 1490 00:42:56,210 --> 00:42:57,390 is just a total failure of it. 1491 00:42:58,210 --> 00:42:59,190 Did that explain it 1492 00:42:59,190 --> 00:42:59,750 well enough for everybody? 1493 00:43:02,170 --> 00:43:02,570 Okay. 1494 00:43:03,010 --> 00:43:04,170 Let's get one more question 1495 00:43:04,170 --> 00:43:04,650 super quick. 1496 00:43:04,810 --> 00:43:05,450 You in the hat. 1497 00:43:06,510 --> 00:43:07,130 Yeah, that guy. 1498 00:43:07,490 --> 00:43:08,170 What prevents me 1499 00:43:08,170 --> 00:43:09,270 from inviting myself 1500 00:43:09,270 --> 00:43:09,950 enough to become 1501 00:43:09,950 --> 00:43:10,430 a hydra 1502 00:43:10,430 --> 00:43:11,490 and it's totally exhausting? 1503 00:43:11,950 --> 00:43:12,350 Yeah. 1504 00:43:12,410 --> 00:43:12,890 All of a sudden, 1505 00:43:12,910 --> 00:43:13,610 it makes you have 1506 00:43:13,610 --> 00:43:14,250 an hour and a half 1507 00:43:14,250 --> 00:43:15,110 because I hate you a lot. 1508 00:43:15,190 --> 00:43:15,570 Right. 1509 00:43:15,750 --> 00:43:17,490 So you'll have a reputation. 1510 00:43:17,490 --> 00:43:18,510 Yeah, you'll have a reputation. 1511 00:43:19,130 --> 00:43:19,790 And you'll have 1512 00:43:19,790 --> 00:43:20,450 this kind of tree. 1513 00:43:20,550 --> 00:43:21,770 You just keep inviting yourself. 1514 00:43:21,950 --> 00:43:22,750 You invite like thousands 1515 00:43:22,750 --> 00:43:23,430 of bots and everything. 1516 00:43:23,830 --> 00:43:25,010 And what I want 1517 00:43:25,010 --> 00:43:25,830 to try and do is 1518 00:43:25,830 --> 00:43:26,550 people will be able 1519 00:43:26,550 --> 00:43:27,330 to go out and find out 1520 00:43:27,330 --> 00:43:27,770 about you. 1521 00:43:27,870 --> 00:43:28,830 And then you can actually 1522 00:43:28,830 --> 00:43:29,630 do this weird stuff 1523 00:43:29,630 --> 00:43:30,450 in social network analysis 1524 00:43:30,450 --> 00:43:31,810 where I can cluster you together 1525 00:43:31,810 --> 00:43:33,090 because you all acted the same. 1526 00:43:33,310 --> 00:43:34,190 And I can actually just 1527 00:43:34,190 --> 00:43:35,230 lop off that whole arm 1528 00:43:35,230 --> 00:43:36,030 of the network. 1529 00:43:37,990 --> 00:43:38,350 Right. 1530 00:43:38,530 --> 00:43:39,210 So basically, 1531 00:43:39,590 --> 00:43:40,270 cabal analysis 1532 00:43:40,270 --> 00:43:41,390 is what I'm calling it. 1533 00:43:41,570 --> 00:43:42,470 But I don't know. 1534 00:43:42,530 --> 00:43:42,990 It could totally, 1535 00:43:43,070 --> 00:43:43,570 yeah. 1536 00:43:44,390 --> 00:43:45,210 It could totally be 1537 00:43:45,210 --> 00:43:46,570 that some really pissed off 1538 00:43:46,570 --> 00:43:47,170 dude at Google 1539 00:43:47,490 --> 00:43:47,670 or whatever. 1540 00:43:48,170 --> 00:43:48,530 Calm. 1541 00:43:50,690 --> 00:43:51,050 Right. 1542 00:43:53,510 --> 00:43:54,630 And also keep in mind 1543 00:43:54,630 --> 00:43:55,390 that I'm not trying, 1544 00:43:55,510 --> 00:43:56,090 like when I say 1545 00:43:56,090 --> 00:43:56,750 strong identity, 1546 00:43:57,070 --> 00:43:57,770 I actually mean 1547 00:43:57,770 --> 00:43:58,670 like stronger identity. 1548 00:43:58,990 --> 00:43:59,710 When I say denial 1549 00:43:59,710 --> 00:44:00,330 of service resistant, 1550 00:44:00,610 --> 00:44:01,630 I mean more resistant. 1551 00:44:01,870 --> 00:44:03,030 It's not completely 1552 00:44:03,030 --> 00:44:03,850 possible to stop it 1553 00:44:03,850 --> 00:44:04,310 all the time. 1554 00:44:04,630 --> 00:44:05,370 But I'm just trying 1555 00:44:05,370 --> 00:44:06,110 to make it a little more 1556 00:44:06,110 --> 00:44:07,450 difficult for people 1557 00:44:07,450 --> 00:44:08,250 trying to attack it. 1558 00:44:08,730 --> 00:44:09,370 So that way, 1559 00:44:09,390 --> 00:44:10,110 they'll go somewhere else. 1560 00:44:10,810 --> 00:44:11,730 That's the basis for it. 1561 00:44:12,210 --> 00:44:13,090 And then the central 1562 00:44:13,090 --> 00:44:13,750 thing about it, 1563 00:44:13,770 --> 00:44:14,450 after you just got done 1564 00:44:14,450 --> 00:44:14,910 doing Tor, 1565 00:44:15,390 --> 00:44:16,510 this is kind of the inverse. 1566 00:44:16,710 --> 00:44:17,470 We're basically saying 1567 00:44:17,490 --> 00:44:18,610 we want to identify everyone. 1568 00:44:18,750 --> 00:44:19,390 We want to know exactly 1569 00:44:19,390 --> 00:44:19,950 who they are. 1570 00:44:20,050 --> 00:44:20,630 Shut the hell up 1571 00:44:20,630 --> 00:44:21,210 if you don't like it. 1572 00:44:21,250 --> 00:44:21,670 Go use Tor. 1573 00:44:23,790 --> 00:44:24,110 Right? 1574 00:44:25,870 --> 00:44:26,810 And then what you can do 1575 00:44:26,810 --> 00:44:27,330 when you use Tor 1576 00:44:27,330 --> 00:44:28,150 is you can just make 1577 00:44:28,150 --> 00:44:28,990 all your data go through 1578 00:44:28,990 --> 00:44:29,930 those three data centers 1579 00:44:29,930 --> 00:44:30,590 in Washington DC 1580 00:44:30,590 --> 00:44:31,370 where they calculate 1581 00:44:31,370 --> 00:44:32,970 about 15% of all the traffic. 1582 00:44:33,210 --> 00:44:34,550 And if you ever studied statistics, 1583 00:44:34,630 --> 00:44:35,910 you realize 15% sample 1584 00:44:35,910 --> 00:44:36,410 is actually enough 1585 00:44:36,410 --> 00:44:37,090 to figure out just about 1586 00:44:37,090 --> 00:44:37,730 everything you need to 1587 00:44:37,730 --> 00:44:38,830 about 90% of the traffic. 1588 00:44:43,910 --> 00:44:44,830 Thank you very much. 1589 00:44:49,970 --> 00:44:51,010 Thank you.