Latest / CyberSecurity Summary / Serious Cryptography, 2nd Edition: A Practical Introduction to Modern Encryption
Transcript
- 0:00Speaker 1: So I was actually just looking at my phone this morning, right,
- 0:02Speaker 1: Oh yeah, yeah, just checking my bank balance, sending a text,
- 0:06Speaker 1: doing a software update, and just kind of hit me.
- 0:08Speaker 2: Let me guess you have no idea how any of
- 0:11Speaker 2: it actually stays secure?
- 0:13Speaker 1: Literally no idea. I mean, I know there's that little
- 0:16Speaker 1: lock icon in the browser, and I hear the word
- 0:18Speaker 1: encryption thrown around a lot, right, But if you actually
- 0:21Speaker 1: ask me to explain how my credit card number doesn't
- 0:24Speaker 1: just you know, float out into the ether for anyone
- 0:27Speaker 1: to grab, I've got absolutely nothing.
- 0:29Speaker 2: Well, you are definitely not alone there. I think for
- 0:31Speaker 2: most of us, cryptography is basically just magic.
- 0:33Speaker 1: It really feels like magic.
- 0:34Speaker 2: It's a black box, you know, the a secret in
- 0:37Speaker 2: one side and random noise comes out the other. But
- 0:40Speaker 2: for the people actually building our digital world, treating it
- 0:44Speaker 2: like magic is well, it's actually incredibly dangerous.
- 0:49Speaker 1: Because magic isn't real. But the software bugs definitely are.
- 0:53Speaker 2: Exactly when cryptography breaks, it doesn't just glitch out for
- 0:56Speaker 2: a second. It fails spectacularly, and that is exactly what
- 1:00Speaker 2: we are digging into today. We're doing a deep dive
- 1:03Speaker 2: into serious cryptography.
- 1:04Speaker 1: Second edition by Jean Feleete almissant. And this isn't just
- 1:09Speaker 1: some dry textbook right, Like, he's not just writing from
- 1:12Speaker 1: an ivory tower somewhere.
- 1:14Speaker 2: Far from it. He's a principal research engineer who deals
- 1:17Speaker 2: with the actual messy reality of digital asset protection.
- 1:21Speaker 1: He's a builder, he is.
- 1:23Speaker 2: If you've ever heard of Blake two or sci fash,
- 1:26Speaker 2: which are algorithms running on millions of servers literally right now,
- 1:29Speaker 2: he designed those. So when he talks about how these
- 1:32Speaker 2: systems break, he really knows where the bodies are buried.
- 1:34Speaker 1: I actually love the metaphor he uses right at the
- 1:36Speaker 1: start of the source material. Yeah, he compares learning this
- 1:39Speaker 1: stuff to mountaineering.
- 1:41Speaker 2: It's such a great image, he says. The book can
- 1:43Speaker 2: give you the ropes, the ice axes, the carabineros, right,
- 1:47Speaker 2: the tools, but you, the reader, you actually have to
- 1:50Speaker 2: make the ascent yourself. You can't just passively watch someone
- 1:53Speaker 2: else climb a mountain.
- 1:54Speaker 1: Well, consider us the surpis for this deep dive. We're
- 1:57Speaker 1: going to point out the handhold so nobody falls off
- 1:59Speaker 1: the cliff, because honestly, looking at the table of contents,
- 2:04Speaker 1: there is some serious math in here.
- 2:06Speaker 2: There is.
- 2:07Speaker 1: But before we get to like the complex curves and
- 2:10Speaker 1: the quantum physics. We really have to start at the
- 2:12Speaker 1: bottom of the mountain. The foundation of everything randomness.
- 2:18Speaker 2: Randomness is the fuel. I mean, if you don't have
- 2:20Speaker 2: high quality randomness, the fanciest encryption algorithm in the entire
- 2:25Speaker 2: world is completely worthless.
- 2:26Speaker 1: It's like having a titanium vault door but leaving the
- 2:29Speaker 1: key right under the doormat exactly And I Stories highlights
- 2:32Speaker 1: something really interesting about this. Computers are literally designed to
- 2:35Speaker 1: be logical and predictable, right, so they actually struggle to
- 2:39Speaker 1: be random. And there was this specific update in the
- 2:41Speaker 1: second edition about Linux that I found fascinating.
- 2:44Speaker 2: Oh right, the classic developer debate between dev random and
- 2:47Speaker 2: dev you random.
- 2:48Speaker 1: Yeah, what was the deal with that?
- 2:49Speaker 2: For a long time the advice was super complicated. One
- 2:52Speaker 2: of them blocked your system until it had gathered enough
- 2:55Speaker 2: quote unquote environmental noise, and the other one didn't block,
- 2:59Speaker 2: but was seen as maybe less secure.
- 3:02Speaker 1: Kind of a headache for engineer, huge headache.
- 3:04Speaker 2: But Almison points out that in modern Linux kernels those
- 3:07Speaker 2: two have largely converged. The engineering has just gotten so
- 3:11Speaker 2: much better at scavenging entropy.
- 3:13Speaker 1: Entropy being that pure chaos.
- 3:14Speaker 2: Right, It stavenges it from your keystrokes, your mouse movements,
- 3:18Speaker 2: even the thermal noise of the hardware itself.
- 3:20Speaker 1: But when that scavenging fails, man, things go south fast. Yeah,
- 3:24Speaker 1: there was this case study in the book that absolutely
- 3:26Speaker 1: blew my mind. The satellite phones.
- 3:29Speaker 2: Oh, the GMR standards, that is a wild story.
- 3:32Speaker 1: Yeah, we are talking about phones used in active war
- 3:35Speaker 1: zones on offshore oil rigs in the middle of the ocean.
- 3:39Speaker 1: You would completely assume this is military grade Fort Knox
- 3:42Speaker 1: level stuff.
- 3:43Speaker 2: You would definitely assume that these are the communication standards
- 3:46Speaker 2: used by massive vendors like Thria and in Marsot. But
- 3:49Speaker 2: researchers finally took a hard look at the encryption, specifically
- 3:53Speaker 2: the GMR one standard, and they found something pretty shocking.
- 3:56Speaker 2: The algorithm wasn't some cutting edge proprietary sheel ih was it.
- 4:00Speaker 2: It was basically just a clone of the old A
- 4:03Speaker 2: fifty two cipher.
- 4:04Speaker 1: And for those of us who don't have our cipher catalogs,
- 4:06Speaker 1: memorize what exactly is A fifty two.
- 4:08Speaker 2: It's the encryption that was used in old two G
- 4:11Speaker 2: mobile phones. And the kicker is it was known to
- 4:14Speaker 2: be fundamentally insecure years before this.
- 4:18Speaker 1: So they literally took a broken lock from an ancient
- 4:21Speaker 1: Nokia and just slapped it onto a satellite phone.
- 4:23Speaker 2: Effectively, Yes, GMR one used four linear feedback shift registers
- 4:29Speaker 2: or LFSRs.
- 4:30Speaker 1: Okay, can we pause on that linear feedback shift register.
- 4:33Speaker 1: It sounds like a piece of vintage office equipment. How
- 4:36Speaker 1: does that actually work?
- 4:37Speaker 2: Imagine a row of bits, just zeros and ones in
- 4:40Speaker 2: a ship register. You take the bit at the very end,
- 4:42Speaker 2: do a little bit of math with it, and feed
- 4:44Speaker 2: it back into the front, okay, and that shifts everything
- 4:46Speaker 2: else down the line. It creates this stream of numbers
- 4:48Speaker 2: that looks random at a glance. But the critical keyword there.
- 4:52Speaker 1: Is linear, meaning it's simple math.
- 4:54Speaker 2: Exactly, it's mathematically simple. If an attacker sees enough of
- 4:58Speaker 2: that output stream, they can and just use basic linear
- 5:01Speaker 2: algebra to reverse the whole process and figure out the
- 5:04Speaker 2: internal state.
- 5:04Speaker 1: So it's totally predictable.
- 5:06Speaker 2: Highly predictable. And the absolute worst part about the satellite
- 5:08Speaker 2: phone situation. This wasn't software. This was baked directly into
- 5:13Speaker 2: the hardware.
- 5:14Speaker 1: Oh wow, that really ties into the illusion of randomness section,
- 5:18Speaker 1: because if it's software like a messaging app on my phone,
- 5:21Speaker 1: the developer can just push an update over Wi Fi
- 5:23Speaker 1: in twenty.
- 5:24Speaker 2: Minutes, right, But if it's hardware physically wired inside a
- 5:28Speaker 2: satellite in orbit or a specialized handset in a war zone,
- 5:32Speaker 2: you can't just send a patch. You have to physically replace.
- 5:35Speaker 1: The equipment, which nobody is going to do.
- 5:37Speaker 2: No. It is the perfect example of why security by obscurity.
- 5:41Speaker 2: Just blindly trusting a company because they assure you its
- 5:44Speaker 2: export grade is a massive trap.
- 5:46Speaker 1: Okay, so LFSRs are kind of the quick and dirty
- 5:48Speaker 1: way to make a stream of numbers, but the source
- 5:51Speaker 1: material does mention a much better way to use them
- 5:53Speaker 1: in the hardware world, right, Yeah. The Grain one to
- 5:55Speaker 1: eight a algorithm.
- 5:57Speaker 2: Yes, this is where the engineering actually gets clever. Grain
- 6:01Speaker 2: one is a stream cipher that tries to safely balance
- 6:04Speaker 2: speed and security. It uses an LFSR for the rhythm
- 6:08Speaker 2: and speed because they're incredibly fast and hardware, but it
- 6:12Speaker 2: pairs it with an NFSR.
- 6:14Speaker 1: A nonlinear feedback shift register.
- 6:16Speaker 2: Exactly. The nonlinear part is what adds the actual chaos.
- 6:20Speaker 2: It mixes the bits back in using logic that isn't
- 6:22Speaker 2: just simple addition. It breaks that predictability.
- 6:25Speaker 1: So you have the linear part driving the engine and
- 6:28Speaker 1: the nonlinear part scrambling the output.
- 6:30Speaker 2: That's a good way to put it. It is a very
- 6:31Speaker 2: delicate balance, though. If you get the mathematical mixed wrong,
- 6:34Speaker 2: you are right back to being vulnerable.
- 6:36Speaker 1: Okay, so we've got a randomness and we've got our
- 6:38Speaker 1: stream ciphers. Now let's talk about organizing all that chaos.
- 6:42Speaker 1: Let's get into.
- 6:43Speaker 2: Hashing the workhourse of cryptography.
- 6:45Speaker 1: And specifically this birthday paradox thing. I have to admit
- 6:49Speaker 1: every single time I hear this concept, if it's to
- 6:50Speaker 1: stop and literally count on my.
- 6:53Speaker 2: Fingers, it is incredibly counterintuitive to how human brains work.
- 6:56Speaker 1: The source says that in a group of just twenty
- 6:58Speaker 1: three people is a fifty percent chance that two of
- 7:01Speaker 1: them share the exact same birthday, and that just feels wrong.
- 7:06Speaker 1: My brain immediately says, well, there are three hundred and
- 7:08Speaker 1: sixty five days in a year, so I should need
- 7:10Speaker 1: way more people in the room to get a match.
- 7:12Speaker 2: It feels wrong because we default to thinking about our
- 7:14Speaker 2: own specific birthday. We walk into a room and think,
- 7:17Speaker 2: what are the odds someone in here matches my birthday?
- 7:20Speaker 1: Right?
- 7:21Speaker 2: But the math isn't looking for a match to you
- 7:23Speaker 2: it's looking for any match between any two people in
- 7:26Speaker 2: the entire group. When you have twenty three people, the
- 7:28Speaker 2: number of possible pairs cross checking each other is actually
- 7:31Speaker 2: surprisingly high.
- 7:32Speaker 1: Okay, that makes sense. Yeah, but why does a cryptographer
- 7:35Speaker 1: care about a party trick with birthdays?
- 7:37Speaker 2: Because of collisions. In hashing, you take a file, it
- 7:41Speaker 2: could be a tiny text document or a massive four
- 7:44Speaker 2: K movie, and the algorithm crunches it down into a short,
- 7:47Speaker 2: fixed length unique fingerprint a ESH.
- 7:50Speaker 1: Right.
- 7:50Speaker 2: A collision is when two completely different files accidentally produce
- 7:54Speaker 2: the exact same fingerprint.
- 7:55Speaker 1: Which I'm guessing is really bad.
- 7:57Speaker 2: It's catastrophic for things like digital signatures. If I can
- 8:00Speaker 2: figure out how to create a malicious, virus laden software
- 8:05Speaker 2: update that has the exact same hash as a legitimate.
- 8:08Speaker 1: Update, then my computer accepts it as safe exactly.
- 8:11Speaker 2: It tricks the system, and the birthday paradox tells us
- 8:14Speaker 2: that finding that collision is so much easier than our
- 8:17Speaker 2: intuition suggests. Mathematically, if your hash fingerprint is dollar bits long,
- 8:22Speaker 2: you might think it takes two to the power of
- 8:24Speaker 2: dollar tries to break it.
- 8:25Speaker 1: This should be a huge number, right, But.
- 8:28Speaker 2: To find a collision any collision. It actually only takes
- 8:31Speaker 2: roughly two to the power of dollar divided by two.
- 8:33Speaker 1: That is a massive shortcut for an attacker, it really is.
- 8:36Speaker 2: It's a difference between blindly searching for a specific needle
- 8:39Speaker 2: in a haystack versus just grabbing any two random pieces
- 8:43Speaker 2: of hay and checking if they happen to look identical.
- 8:45Speaker 1: So how do we actually build a hash that resists
- 8:47Speaker 1: that kind of shortcut. The book spends a ton of
- 8:50Speaker 1: time on this sponge construction, and I just love the visual.
- 8:53Speaker 1: Here is it literally acting like a kitchen sponge.
- 8:56Speaker 2: It really is an apt metaphor. Think about how you
- 9:00Speaker 2: use a sponge in the sink. It operates in two
- 9:02Speaker 2: distinct phases. First, you plunge it underwater and let it
- 9:07Speaker 2: absorbs the liquid. Okay, in the cryptographic algorithm, this is
- 9:11Speaker 2: called the absorbing phase. You take your blocks of message
- 9:15Speaker 2: data and you mathematically mix them into the sponge's internal
- 9:18Speaker 2: state using xor operations, XO.
- 9:21Speaker 1: Being that fundamental logic gait that flips bits.
- 9:24Speaker 2: Around correct so the mathematical sponge soaks up all the data. Then,
- 9:27Speaker 2: once every single piece of your message is absorbed, you
- 9:30Speaker 2: switch to the squeezing phase. You ring the sponge out
- 9:33Speaker 2: to get your final hash output.
- 9:35Speaker 1: And this is the structure that SAHA three.
- 9:37Speaker 2: Uses, Yes, SAHA three, which is Kekak. And the reason
- 9:40Speaker 2: the industry loves it is because it's so incredibly versatile
- 9:43Speaker 2: because of this absorb and squeeze structure. You can use
- 9:46Speaker 2: a sponge for basic harrying, sure, but you can also
- 9:48Speaker 2: keep squeezing it to generate an endless stream of random.
- 9:51Speaker 1: Numbers, or use it as a stream cipher exactly.
- 9:53Speaker 2: It's like a Swiss army knife for cryptography.
- 9:56Speaker 1: Now, speaking of hashing, we definitely have to talk about
- 9:59Speaker 1: sci fash. We mentioned earlier that Amisan code designed it,
- 10:03Speaker 1: but the sources it wasn't even originally designed for encryption, right.
- 10:06Speaker 2: This is such a fascinating piece of modern Internet history.
- 10:10Speaker 2: Sifash wasn't built to keep military secrets. It was designed
- 10:14Speaker 2: to solve a very specific type of denial of service
- 10:17Speaker 2: attack called hash flooding.
- 10:19Speaker 1: How does a hash flooding attack work?
- 10:22Speaker 2: Okay, so think about programming languages like Python or Ruby.
- 10:25Speaker 2: Under the hood, they use something called hash tables to
- 10:28Speaker 2: store data quickly. It's essentially a massive digital filing cabinet.
- 10:33Speaker 2: The program hashes the incoming data to instantly know exactly
- 10:36Speaker 2: which drawer to drop it into. Super efficient, very efficient,
- 10:40Speaker 2: unless a hacker figures out your hashing algorithm and intentionally
- 10:43Speaker 2: sends you a million pieces of junk data that are
- 10:46Speaker 2: all mathematically calculated to hash to the exact same drawer.
- 10:49Speaker 1: Oh a collision storm.
- 10:51Speaker 2: Yes, suddenly your high speed server isn't quickly filing things
- 10:54Speaker 2: away anymore. It's desperately digging through one massive, overflowing drawer
- 10:59Speaker 2: trying to find things. It slows the entire server to
- 11:01Speaker 2: an absolute crawl.
- 11:03Speaker 1: So the server crashes, but not because it was hacked
- 11:06Speaker 1: in the Hollywood sense of stealing passwords, but literally because
- 11:09Speaker 1: it got confused by its own internal filing system.
- 11:12Speaker 2: Precisely, sifash was specifically designed to be an incredibly fast,
- 11:16Speaker 2: secure keyed hash function to prevent exactly this. It mixes
- 11:21Speaker 2: in a secret key so the attacker cannot predict which
- 11:25Speaker 2: drawer the data will go to. It protects the actual
- 11:27Speaker 2: infrastructure itself, not just the secrets.
- 11:30Speaker 1: It's engineering, plain and simple, keeping the pipes from bursting exactly. Okay,
- 11:34Speaker 1: so we've covered the foothills. We did randomness, we did hashing.
- 11:37Speaker 1: Now grab your ice axe, because we are tackling the
- 11:41Speaker 1: big sheer cliff face of the book. Yeah, public key cryptography.
- 11:45Speaker 1: This is the stuff that lets me send my credit
- 11:47Speaker 1: card number to a website without a guy in a
- 11:50Speaker 1: coffee shop van listening in.
- 11:51Speaker 2: Right, the absolute backbone of the modern Internet.
- 11:54Speaker 1: And for a really long time, the undisputed king of
- 11:56Speaker 1: this hill was RSA.
- 11:58Speaker 2: RSA is the grandfather and its beautiful math. Really it
- 12:02Speaker 2: relies entirely on the fact that it is very very
- 12:04Speaker 2: easy for a computer to multiply two massive prime numbers together.
- 12:08Speaker 2: But it is incredibly mind bogglingly hard to take that
- 12:12Speaker 2: final massive number and work backward to figure out what
- 12:15Speaker 2: those two original primes were. Factoring factoring large integers, and
- 12:20Speaker 2: the book gives some great scale on just how hard
- 12:22Speaker 2: this is. There's an algorithm called the general number field
- 12:25Speaker 2: sieve or GNFS. It is currently the absolute fastest way
- 12:29Speaker 2: we know of to factor these large numbers.
- 12:31Speaker 1: But fast is a very relative term here, Isn't it
- 12:33Speaker 1: very relative?
- 12:34Speaker 2: The source material notes that successfully factoring just a seven
- 12:38Speaker 2: hundred and sixty eight bit number using GNFS took the
- 12:41Speaker 2: computational equivalent of two thousand processor years.
- 12:44Speaker 1: Two thousand years yes, and.
- 12:46Speaker 2: A seven hundred and sixty eight bit key is considered
- 12:48Speaker 2: small by today's standards. That is exactly why your bank
- 12:51Speaker 2: and your browser are using twenty forty eight bit keys
- 12:53Speaker 2: or even larger. The raw computational power required to break
- 12:57Speaker 2: that with current classical technology is just astra nomical. It
- 13:00Speaker 2: is safe because the math is just too hard to reverse.
- 13:03Speaker 1: But RSA is getting kind of old, isn't it? Like?
- 13:05Speaker 1: It's clunky? The keys have to be massively huge to
- 13:08Speaker 1: stay secure. The source says, the industry is moving or
- 13:10Speaker 1: really has already moved, to elliptic curve cryptography or ECC.
- 13:15Speaker 2: ECC is definitely the modern standard. It gives you the
- 13:18Speaker 2: exact same level of security as RSA, but with significantly
- 13:21Speaker 2: smaller keys, which makes everything faster. Instead of smashing giant
- 13:26Speaker 2: prime numbers together, we look at the geometric properties of
- 13:29Speaker 2: points on a curve.
- 13:31Speaker 1: Now, this was the part of the book where I
- 13:32Speaker 1: really had to slow down and reread a few times.
- 13:36Speaker 1: Can you try to visualize this for us? The book
- 13:38Speaker 1: describes it as a sort of geometric game.
- 13:41Speaker 2: Let's try picture a standard graph with a smooth, sweeping
- 13:46Speaker 2: line looping around it. That is your elliptic curve. The
- 13:49Speaker 2: mathematical game goes like this. You take two distinct points
- 13:53Speaker 2: on that curve, let's call them point P and point Q.
- 13:56Speaker 1: Okay, P and Q on the curve.
- 13:58Speaker 2: Now draw a perfectly straight line through both of them.
- 14:01Speaker 2: Because of the specific shape of an elliptic curve, that
- 14:04Speaker 2: straight line is guaranteed to intersect the curve at exactly
- 14:06Speaker 2: one other place.
- 14:07Speaker 1: Okay, I'm with you so far.
- 14:08Speaker 2: You find that third intersection point, and then you reflect
- 14:11Speaker 2: it straight across the x axis, like dropping a mirror
- 14:14Speaker 2: image down. That new reflected point is the mathematical result
- 14:18Speaker 2: of quote unquote adding point P and point Q together.
- 14:21Speaker 1: It really feels like playing a weird game of billiards
- 14:23Speaker 1: on a graph.
- 14:24Speaker 2: It totally does. And if you keep playing that game
- 14:27Speaker 2: repeatedly adding a point to itself over and over, you
- 14:30Speaker 2: start bouncing around the curve in this wildly chaotic, seemingly
- 14:35Speaker 2: unpredictable pattern. The security of ECC comes from what we
- 14:38Speaker 2: call the discrete.
- 14:39Speaker 1: Logarithm problem, which is what exactly.
- 14:41Speaker 2: Basically, if I tell you the exact point where I
- 14:43Speaker 2: started my game of billiards, and then I show you
- 14:46Speaker 2: the final point where my ball ended up. You cannot
- 14:49Speaker 2: easily figure out how many times I hit the ball
- 14:52Speaker 2: to get there. You can't calculate the number.
- 14:54Speaker 1: Of hops, and that number of hops is the secret.
- 14:57Speaker 2: That number of hops is your private key.
- 14:59Speaker 3: That is genius, really But and there's always a huge
- 15:03Speaker 3: but when we talk about this stuff, the math can
- 15:05Speaker 3: be absolutely flawless, and the climbers can still fall right
- 15:08Speaker 3: off the mountain if they don't tie their knots correctly.
- 15:11Speaker 2: Implementation is everything.
- 15:12Speaker 1: We have to talk about the PlayStation three hack because
- 15:15Speaker 1: this section.
- 15:16Speaker 2: Was what oh the PS three hack. This is an
- 15:18Speaker 2: absolute tragedy of implementation.
- 15:20Speaker 1: I remember when in the Savity it was massive news everywhere.
- 15:22Speaker 2: So Sony was using ECDSA, the Elliptic Curve Digital Signature algorithm.
- 15:27Speaker 2: The algorithm itself is incredibly strong, it's the industry standard,
- 15:31Speaker 2: but the underlying math requires a fresh, completely random number,
- 15:35Speaker 2: usually referred to as the value K, to generate every
- 15:38Speaker 2: single signature. And the golden rule of ECDSA is you
- 15:42Speaker 2: must never ever use the exact same K value twice.
- 15:46Speaker 1: Let me guess they used the same k.
- 15:48Speaker 2: They did, and it wasn't just twice. They literally hard
- 15:51Speaker 2: coded a single static K value into the system. The
- 15:55Speaker 2: fails offer Flow team, the group of hackers who cracked it.
- 15:59Speaker 2: They just analyzed a few different game signatures and immediately
- 16:01Speaker 2: realized that the k value wasn't changing at all.
- 16:03Speaker 1: And what did that actually allow an attacker to do?
- 16:06Speaker 2: It takes this impossibly hard cryptographic math and turns it
- 16:09Speaker 2: into basic high school algebra. Because they now had two
- 16:12Speaker 2: mathematical equations with the exact same shared variable, they could
- 16:15Speaker 2: literally just solve for X and X in this case
- 16:18Speaker 2: was Sony's ultimate private master key.
- 16:21Speaker 1: That is just wild. So because of one single bad
- 16:23Speaker 1: random number implementation, these hackers could just sign their own code.
- 16:27Speaker 2: They could sign anything they wanted. They could run alternative
- 16:30Speaker 2: operating systems like Linux, pirate games, custom homebrew software. The
- 16:35Speaker 2: PS three console accepted every bit of it as perfectly
- 16:38Speaker 2: valid official Sony kind because the cryptographic signature was mathematically perfect.
- 16:44Speaker 1: It really just drives home the author's point, doesn't It.
- 16:47Speaker 1: A mathematically strong algorithm is totally useless if the engineering
- 16:52Speaker 1: surrounding it is lazier weak, absolutely useless. There was one
- 16:56Speaker 1: other failure mentioned in the book that felt honestly even
- 16:58Speaker 1: more dangerous because it wasn't just a gaming console being cracked.
- 17:02Speaker 1: It was the trust of the web itself. The Digito
- 17:06Speaker 1: Tar disaster.
- 17:07Speaker 2: Yeah, this is the one that still keeps security professionals
- 17:09Speaker 2: up at night. The entire secure web HTTPS relies entirely
- 17:13Speaker 2: on a chain of trust. When you type Google dot
- 17:15Speaker 2: com into your browser, how does your computer actually know
- 17:18Speaker 2: it's talking to Google and not some hacker?
- 17:20Speaker 1: You trust? A Certificate authority a CAA exactly.
- 17:23Speaker 2: They act as digital notaries. They cryptographically vouch for the
- 17:27Speaker 2: website's identity. Digito Tar was a major Dutch CAA, but
- 17:32Speaker 2: in twenty eleven their internal systems were totally compromised. Hackers
- 17:36Speaker 2: got in and managed to silently issue fake, mathematically valid
- 17:40Speaker 2: certificates for domains like Google dot com.
- 17:42Speaker 1: So if I'm just a regular user and my browser
- 17:45Speaker 1: receives this fake certificate.
- 17:47Speaker 2: Your browser sees the green padlock icon it says verified
- 17:50Speaker 2: by Digito Tar. Everything looks one hundred percent secure and normal.
- 17:53Speaker 2: But it's a trap. The hackers actually use these fraudulent
- 17:57Speaker 2: certificates to launch massive man in the middle attack against
- 18:00Speaker 2: Gmail users in Iran.
- 18:01Speaker 1: Oh wow.
- 18:02Speaker 2: They were silently intercepting and reading communications that people completely
- 18:05Speaker 2: believed were securely encrypted.
- 18:07Speaker 1: It just shows that the chain of trust we all
- 18:09Speaker 1: rely on is extremely fragile. If just one link breaks,
- 18:13Speaker 1: if one single notary company gets Lazier gets hacked, the
- 18:16Speaker 1: whole global system wabbles.
- 18:18Speaker 2: And once that trust is lost in cryptography, it is
- 18:20Speaker 2: almost impossible to earn it back. Dignatar went completely bankrupt
- 18:24Speaker 2: very shortly after that incident.
- 18:26Speaker 1: Okay, so we've seen how things break in today's world,
- 18:29Speaker 1: But the book ends by looking at how everything might
- 18:32Speaker 1: break tomorrow. The ultimate system smasher quantum computing.
- 18:38Speaker 2: The quantum threat it is looming now.
- 18:40Speaker 1: Normally, when tech people talk about faster computers, we just
- 18:44Speaker 1: mean they can guess our passwords faster, right, But the
- 18:47Speaker 1: book explains that Shor's algorithm, which is designed to run
- 18:50Speaker 1: on these future quantum computers, is fundamentally different than just
- 18:54Speaker 1: being fast.
- 18:55Speaker 2: It is entirely different. It's not just a speed boost.
- 18:58Speaker 2: Shore's algorithm actually changes the mathematical complexity class the problem.
- 19:02Speaker 2: Remember how we said earlier that factoring large numbers is
- 19:05Speaker 2: a quote unquote hard problem.
- 19:07Speaker 1: Right the two thousand process or years for a small.
- 19:09Speaker 2: Key, Shor's algorithm turns factoring into an easy task. It
- 19:12Speaker 2: can solve it in what mathematicians call polynomial time. If
- 19:16Speaker 2: someone builds a quantum computer big enough and stable enough
- 19:18Speaker 2: to run it, RSA is just.
- 19:20Speaker 1: Gone gone, like completely.
- 19:22Speaker 2: Completely broken, and elliptic curves broken too. The author actually
- 19:27Speaker 2: notes that a sufficiently powerful quantum computer would reduce the
- 19:29Speaker 2: security of modern public key cryptography to the level of
- 19:33Speaker 2: a Caesar cipher.
- 19:34Speaker 1: Wait, a Caesar cipher like shifting every letter down the
- 19:38Speaker 1: alphabet by three. That's the secret code I used on
- 19:41Speaker 1: the playground in third grade.
- 19:42Speaker 2: Yes, that is the true scale of the threat we
- 19:45Speaker 2: are talking about here.
- 19:46Speaker 1: How does it even do that? How is it so powerful?
- 19:49Speaker 2: It all comes down to quibbits. A classical computer uses
- 19:53Speaker 2: normal bits. They are strictly a zero or a one.
- 19:56Speaker 2: A quantum computer uses quibbits, which operate using complax numbers
- 20:00Speaker 2: and a principle called superposition.
- 20:03Speaker 1: The book mentioned something about amplitudes on a two D plane.
- 20:06Speaker 2: Right. Instead of a simple light switch that is either
- 20:09Speaker 2: on or off, imagine a point moving around on the
- 20:12Speaker 2: surface of a sphere. Through quantum inspirations like the Hattimer
- 20:15Speaker 2: gate mentioned in the text, the computer can put these
- 20:18Speaker 2: corbets into a state where they hold and process huge
- 20:21Speaker 2: amounts of information simultaneously.
- 20:23Speaker 1: It just bends the mind, It really does.
- 20:25Speaker 2: It allows the quantum computer to find the overall period
- 20:27Speaker 2: of a function, which happens to be the secret mathematical
- 20:30Speaker 2: backdoor to factoring, almost instantaneously compared to a classical machine.
- 20:34Speaker 1: That is genuinely terrifying. So if RSA and ECC are
- 20:39Speaker 1: just doomed, what do we do? Are we literally just
- 20:41Speaker 1: going back to sending secrets via carrier pigeons?
- 20:44Speaker 2: No, thankfully not. We move to what's called post quantum cryptography.
- 20:48Speaker 2: The source spends some time talking about lattice based cryptography
- 20:52Speaker 2: as the likely successor.
- 20:53Speaker 1: Lattice based It sounds sturdy, h like a fence.
- 20:57Speaker 2: It involves finding specific hidden vector in a wildly complex,
- 21:02Speaker 2: multidimensional grid of points. It is incredibly dense math that,
- 21:06Speaker 2: at least so far, quantum computers do not seem to
- 21:09Speaker 2: be inherently good at solving, at least so far. That
- 21:11Speaker 2: is the big catch. The security of lattice based crypto
- 21:14Speaker 2: is what we call asymptotic. We think it's extremely hard,
- 21:17Speaker 2: but we just don't understand the deep mathematical vulnerabilities as
- 21:21Speaker 2: well as we understand RSA, which we've been testing for decades.
- 21:25Speaker 2: We are essentially trading a known incoming risk for a
- 21:27Speaker 2: relatively unknown.
- 21:28Speaker 1: Risk out of the frying pan and into the multidimensional grid.
- 21:31Speaker 1: But before we completely wrap up, the second edition of
- 21:35Speaker 1: the book also added some really interesting new frontiers, specifically
- 21:39Speaker 1: around blockchain, and honestly glad it did, because usually blockchain
- 21:43Speaker 1: just gets dismissed in mainstream tech. As you know, crypto
- 21:46Speaker 1: prices go up, crypto crisis go down.
- 21:48Speaker 2: Right, the financial speculation overshadows it, but the underlying cryptography
- 21:53Speaker 2: enabling it is actually fascinating. Chapter fifteen covers some cutting
- 21:57Speaker 2: edge stuff like BLS signatures.
- 21:59Speaker 1: What makes a BLU signature.
- 22:00Speaker 2: So special aggregation? Imagine you have a major network transaction
- 22:05Speaker 2: that needs to be explicitly approved by a thousand different people.
- 22:09Speaker 2: In the old cryptographic way, you'd have to append and
- 22:12Speaker 2: store one thousand separate digital signatures to that file. That
- 22:15Speaker 2: takes up a massive amount of data space. With BLS,
- 22:18Speaker 2: you can mathematically mash all one thousand of those signatures
- 22:22Speaker 2: together into one single compact signature that still proves everyone
- 22:26Speaker 2: signed it.
- 22:26Speaker 1: That is huge for scaling a network, it's vital.
- 22:28Speaker 2: And then there are threshold signatures. Now this sounded like
- 22:31Speaker 2: something straight out of a Cold war spy movie to me.
- 22:34Speaker 1: Oh, like the nuclear launch key scenario where two people
- 22:38Speaker 1: have to turn the keys at the same time.
- 22:39Speaker 2: Exactly that. You take a single private key and you
- 22:43Speaker 2: mathematically split it into pieces or shares. You give one
- 22:46Speaker 2: piece to five different people. You can configure the math
- 22:50Speaker 2: so that any three of them can combine their pieces
- 22:52Speaker 2: to sign a transaction. But if only two of them agree,
- 22:55Speaker 2: it won't work.
- 22:56Speaker 1: How does the math even handle having just parts of
- 22:59Speaker 1: the key? Does it just guess the rest?
- 23:02Speaker 2: No guessing? It uses a concept called lagrange interpolation. Basically,
- 23:07Speaker 2: the key is hidden on a secret mathematical curve. If
- 23:10Speaker 2: you have enough points, enough human shares coming together, you
- 23:13Speaker 2: can perfectly reconstruct the curve and use the secret key.
- 23:16Speaker 1: And if you don't have enough points.
- 23:17Speaker 2: If you don't have enough points, you know absolutely nothing.
- 23:20Speaker 2: It's not like having half a password where you can
- 23:22Speaker 2: guess the rest. You mathematically have zero information about the key.
- 23:26Speaker 1: That is so cool. And finally, the term I feel
- 23:28Speaker 1: like I keep hearing everywhere lately ZK snarks zero knowledge
- 23:34Speaker 1: proofs ah.
- 23:35Speaker 2: Yes, this is really the holy grail of digital privacy.
- 23:38Speaker 1: Right now, as I understand it. It's basically proving I
- 23:41Speaker 1: know a secret without ever actually telling you what the
- 23:43Speaker 1: secret is.
- 23:44Speaker 2: Right. The classic analogy is the magic cave. Imagine I
- 23:47Speaker 2: know the secret password to open a door deep inside
- 23:50Speaker 2: a cave. I want to prove to you that I
- 23:52Speaker 2: know the password, but I refuse to say it out loud. Okay,
- 23:55Speaker 2: So I go into one side of the cave, I
- 23:57Speaker 2: use the password to open the door, and I come
- 23:59Speaker 2: out the side where you are waiting. The only physical
- 24:03Speaker 2: way I could have done that is if I truly
- 24:05Speaker 2: knew the secret. I proved it without revealing it.
- 24:08Speaker 1: But how does that translate mathematically to code?
- 24:11Speaker 2: Mathematically, it involves turning a standard computer program into a
- 24:15Speaker 2: massive logical circuit, and then translating that circuit into a
- 24:19Speaker 2: giant list of mathematical constraints. If I can provide a
- 24:23Speaker 2: set of numbers that perfectly satisfies all those complex constraints,
- 24:27Speaker 2: I can cryptographically prove I possess the underlying data without
- 24:31Speaker 2: ever transmitting the data itself.
- 24:33Speaker 1: And that's how you get anonymous blockchain transactions.
- 24:35Speaker 2: Right.
- 24:36Speaker 1: The network can verify the money is totally real without
- 24:39Speaker 1: ever seeing who sent it or who received it.
- 24:41Speaker 2: Exactly. It's incredibly powerful stuff.
- 24:43Speaker 1: We have honestly covered a staggering amount of ground today,
- 24:47Speaker 1: from the janky hardware, baked randomness of old satellite phones,
- 24:51Speaker 1: to quantum killing algorithms, and all the way to zero
- 24:55Speaker 1: knowledge proofs. If there's one single thing I've learned from
- 24:59Speaker 1: this deep dive said, cryptography is not a quote unquote
- 25:02Speaker 1: solved problem.
- 25:04Speaker 2: Not even close. Cryptography is an internal arms race. It
- 25:07Speaker 2: is a constant, exhausting battle between mathematical complexity and cryptanalysis.
- 25:12Speaker 2: The engineers building the walls are permanently racing against the
- 25:16Speaker 2: hackers building the ladders.
- 25:17Speaker 1: The author actually ends the book with a bit of
- 25:19Speaker 1: a sci fi scenario that really stuck with me. It's
- 25:22Speaker 1: a hypothetical news headline from the year twenty forty eight.
- 25:25Speaker 2: ACM Inc. Reveals secret quantum computer launches break crypto as
- 25:30Speaker 2: a service.
- 25:31Speaker 1: That is just a chilling thought. You wouldn't even need
- 25:33Speaker 1: to be a nation state hacker anymore. You could just
- 25:35Speaker 1: rent a server for an hour to break global security.
- 25:38Speaker 2: It is entirely plausible, And that's exactly why the final
- 25:41Speaker 2: takeaway from serious cryptography is so critical. As an industry
- 25:44Speaker 2: and as users, we have to stop treating these systems
- 25:47Speaker 2: as magical black boxes. We have to treat them as
- 25:50Speaker 2: rigorous engineering disciplines.
- 25:52Speaker 1: We have to actually pick up the ropes in the
- 25:53Speaker 1: ice axes and do the climb ourselves.
- 25:55Speaker 2: Exactly. You have to be the mountaineer of your own security.
- 25:59Speaker 2: Don't just blindly trust the little lock icon in your browser.
- 26:03Speaker 2: Try to understand the architecture that holds it together.
- 26:05Speaker 1: Well, on that slightly terrifying note, I'm definitely going to
- 26:08Speaker 1: go update my passwords, check my systems, enter b sources,
- 26:12Speaker 1: and maybe just wrap my entire phone in aluminum foil.
- 26:15Speaker 1: Thanks for guiding us through the math and the madness today.
- 26:17Speaker 2: My pleasure stay secure out there.
- 26:20Speaker 1: And to you listening, thanks for climbing with us. But
- 26:22Speaker 1: before you go, just think about this. What if the
- 26:26Speaker 1: random number generator inside the device you are using to
- 26:29Speaker 1: listen to this right now is already quietly failing and
- 26:33Speaker 1: you won't even know it until your entire digital life
- 26:35Speaker 1: is compromised. Just something to moll over. Catch you on
- 26:39Speaker 1: the next deep dive