Networking8h estimated

TLS & Encryption Basics

Difficulty
Importance

The problem

Data traveling over the internet passes through machines you don't control and can't trust — routers, ISPs, anyone on the same network — so without encryption, everything sent in plain HTTP (passwords, personal data) is readable by anyone in the path. TLS makes the connection private and verifies you're actually talking to who you think you are.

Why now

HTTP fundamentals established the request/response conversation, but said nothing about who else can read it. Modular arithmetic already introduced modular exponentiation as the basis of RSA encryption; TLS is where that math gets applied to secure a real conversation, combining it with symmetric encryption for speed.

Mental model

TLS solves two problems at once: proving identity (via a certificate chain rooted in a trusted authority) and establishing a private channel (via a handshake that negotiates a shared secret key, using slow-but-clever public-key math briefly, then switching to fast symmetric encryption for the actual data). HTTPS is just HTTP conducted entirely inside that private, verified channel.

Requires

Unlocks

Used in

Projects

  • Inspect a real website's TLS certificate in the browser and trace its trust chain back to a root certificate authority
  • Explain, step by step, what happens during a TLS handshake, from ClientHello to the first encrypted application data

Examples

  • A browser rejects a site with an expired or self-signed certificate because the trust chain can't be verified
  • TLS switches from slow public-key math (for the handshake) to fast symmetric encryption (for the actual data) purely for performance

Resources

Mastery checklist