Chapter Four · Secrets and Encryption
Chapter 4: Secrets and Encryption
Most of what you send online crosses paths you don't control and can't see. This chapter is about the one tool that makes that bearable: scrambling a message so only the intended reader can make sense of it. We'll build encryption from the ground up — one shared key, then two matched keys — and meet its close cousins, hashing and digital signatures.
When Olivia sends a card number to a shop, it doesn't travel down a private wire. It hops through routers, networks, and machines she will never see — any of which could be watching. The question this chapter answers is simple to ask and surprisingly deep to solve: how do you send something across a path full of strangers so that only the person at the other end can read it?
The answer is encryption — turning a readable message into a scrambled one that means nothing without the right key. We start with the core idea, then build it up in steps: encryption with a single shared key, then the clever two-key trick that lets total strangers communicate safely. Along the way we separate encryption from two things people constantly confuse it with — hashing, which has no way back, and digital signatures, which prove who sent a message rather than hiding it.