Security
Encryption and HTTPS in Plain English
What encryption actually does, what the browser padlock promises (and doesn't), and where your data is protected — in transit, at rest, and end to end.
Tutorial overview
What you will learn
- Explain symmetric and public-key encryption with everyday analogies
- Describe what happens when a browser opens an HTTPS connection
- State precisely what the padlock does and does not guarantee
- Distinguish encryption in transit
- at rest
- and end-to-end — and why the difference matters
By the end, you will have
- A working mental model of the encryption behind everyday browsing
- The ability to answer "is this actually secure?" with the right follow-up questions
Introduction
Every time you log in, buy something, or send a message, encryption is doing invisible work between your keyboard and a server. Most explanations either hand-wave ("it scrambles your data!") or drown you in math. This tutorial takes the middle path: accurate mechanics, zero equations.
By the end, the padlock in your browser will mean something specific to you — including the important things it does not mean. That precision is practical: the gap between "encrypted" and "safe" is exactly where modern scams live.
What you will build or practice
A mental model in three layers — what encryption is, how HTTPS uses it, and where data is (and isn't) protected — plus a hands-on inspection of a real site's certificate.
Before you begin
Three words, defined once:
- Plaintext — readable data. Ciphertext — the scrambled version.
- Key — the secret that converts one to the other.
- TLS (Transport Layer Security) — the protocol that adds the S to HTTPS. You'll still hear "SSL," its retired predecessor's name; people usually mean TLS.
Key concept
Encryption solves three different problems, and mixing them up is where confusion comes from:
- Privacy — nobody in between can read it.
- Integrity — nobody in between changed it.
- Identity — you're talking to who you think you're talking to.
HTTPS delivers all three, but only for the connection. Keep that limitation in your pocket; we'll come back to it at the padlock.
Step 1: Symmetric encryption — one shared key
The oldest idea: the same key locks and unlocks. Alice encrypts with key K, Bob decrypts with key K. Modern symmetric ciphers (AES is the everyday workhorse) are fast and, with a good key, unbreakable in practice — a brute-force attack on a 256-bit key outlasts the lifetime of the universe by absurd margins.
One problem, and it's a big one: Bob needs the key too, and you can't safely send a key over the same channel you're trying to protect. Email it and an eavesdropper has it. This is the key distribution problem, and it stalled cryptography for centuries.
Step 2: Public-key encryption — the open padlock
The 1970s breakthrough: key pairs. Each person has a public key (share it with the world) and a private key (share it with no one). What the public key encrypts, only the private key decrypts.
The analogy that sticks: a public key is an open padlock you hand out freely. Anyone can snap it shut on a box for you — but only you hold the key that opens it. Now strangers can send you secrets without ever having met you to exchange keys.
The same math works in reverse as signatures: something "locked" with your private key can be verified by anyone with your public key — proving it came from you and wasn't altered. That's the integrity-and-identity half of the story.
Public-key operations are slow, though, so real systems use both: public-key crypto to agree on a fresh shared key, then fast symmetric crypto for the actual data. Hold that thought — it's literally what HTTPS does.
Step 3: The HTTPS handshake, narrated
Type https://yourbank.com and hit enter. In the first fraction of a second:
- Hello — your browser and the server agree on which TLS version and cipher to use. (TLS 1.3, current since 2018, is the streamlined modern version; 1.2 remains common and acceptable.)
- Identity — the server presents its certificate: its public key plus a signed statement from a certificate authority (CA) vouching that this key really belongs to
yourbank.com. Your browser ships with a list of trusted CAs and checks the signature, the domain match, and the expiry date. - Key agreement — browser and server use public-key mathematics to arrive at a fresh shared secret. Modern TLS does this so that even a recording of the whole exchange doesn't reveal the key — and (a property called forward secrecy) even a future theft of the server's private key can't decrypt today's recorded traffic.
- Switch to symmetric — everything after this point is encrypted with the fast shared key: the pages, your passwords, your cookies, the URLs' paths.
All three promises delivered: privacy (step 4), integrity (TLS authenticates every record), identity (step 2). Certificates are free and automated now — Let's Encrypt issues them at no cost — which is why HTTPS became the default web, and why its mere presence proves so little about who you're talking to. Which brings us to:
Step 4: What the padlock actually promises
The padlock (or https:// — recent browsers increasingly drop the icon) means exactly this:
Your connection to this domain is encrypted, and the domain is really the one in the address bar.
It does not mean the site is honest, safe, or the one you meant to visit. paypa1-secure-login.com can get a perfectly valid certificate in minutes — the certificate truthfully asserts you have an encrypted connection to the scam. This is why phishing defense is about reading the domain, not finding the padlock. Padlock + wrong domain = encrypted fraud.
Try it now: click the icon left of the URL on this site (a padlock or a "tune" icon depending on browser), find "Connection is secure" → "Certificate," and look at who it was issued to, who issued it, and when it expires. That's the whole trust chain, inspectable in two clicks.
Step 5: In transit, at rest, end-to-end — where the protection stops
"Encrypted" is meaningless until you ask where:
- In transit — protected while traveling. This is HTTPS. The company's servers decrypt and can read everything on arrival.
- At rest — protected while stored on disk, against stolen hardware and leaked backups. The company holds the keys and reads the data to operate the service.
- End-to-end (E2E) — encrypted on your device, decrypted only on the recipient's device. The provider in the middle relays ciphertext it cannot read. Signal uses this by design; WhatsApp uses the same protocol for message content; standard email does not.
The practical question about any service is not "is it encrypted?" — nearly everything is, somewhere — but "who holds the keys?" If the provider holds them, your protection is their policy plus their security. If only the endpoints hold them, not even a subpoena to the provider produces plaintext. Neither answer is automatically right — E2E also means the provider cannot recover your data if you lose your key — but you should know which one you're getting.
One more place the same distinction earns its keep: passwords. Well-run sites don't store your password encrypted (decryptable) at all — they store a one-way hash, which is why a site that can email you your old password is waving a red flag. The details live in Modern Password Rules.
Practice exercise
- The task: for three services you use daily (say: your bank's site, your main messenger, your cloud storage), answer two questions each — is my connection to it encrypted? and who can read the stored content?
- Expected output: a six-cell table. Bank: HTTPS + provider-readable storage. Messenger: check whether it advertises end-to-end. Cloud drive: almost certainly encrypted at rest but provider-readable (unless you chose an E2E product).
- One hint: services are proud of E2E and say so prominently. If the marketing only says "encrypted," it's in-transit and at-rest.
- Stretch goal: inspect the certificate on two more sites you visit. Note who the issuing CAs are — you'll start recognizing the handful of names that anchor trust for the whole web.
Common mistakes
- Reading the padlock as "this site is legitimate." It authenticates the domain, nothing more. The domain still has to be one you trust — read it.
- Saying "SSL" when evaluating security. Harmless as slang, but if a product's documentation genuinely means SSL-era protocols, that's obsolete. The current standards are TLS 1.2 and 1.3.
- Assuming "encrypted" means the provider can't read it. In-transit and at-rest encryption both leave the provider holding keys. Only end-to-end moves the keys to you.
- Believing HTTP (no S) is fine "because I'm not typing a password." Unencrypted pages can be read and altered in transit — injected content, tampered downloads. Modern browsers flag plain HTTP as "Not secure" for good reason.
Check your understanding
- Why do real systems combine public-key and symmetric encryption instead of picking one?
- What are the three things a browser checks about a certificate, and which attack does that inspection prevent?
- A messaging app says "your chats are encrypted." What single question determines how much that claim is worth?
Key takeaways
- Encryption delivers privacy, integrity, and identity — three promises, not one.
- Symmetric crypto is fast but can't distribute keys; public-key crypto distributes keys but is slow; HTTPS uses each for what it's good at.
- The certificate system ties public keys to domain names — that's the entire meaning of the padlock.
- Padlock + wrong domain = encrypted fraud. Domain-reading beats icon-spotting.
- The question that cuts through every "encrypted" claim: who holds the keys?
Next steps
You now hold both halves of everyday defense: this tutorial explains what the technology guarantees, and Phishing and Social Engineering covers the attacks that route around it by targeting you instead. Read them as a pair. Then let Modern Password Rules fix the layer that encryption can't.
Related resources
- Phishing and Social Engineering — the attacks that don't bother breaking encryption
- Modern Password Rules (NIST) — hashing, managers, and MFA
- The OWASP Top 10, Explained in Plain English — cryptographic failures rank #4 for a reason
Newsletter or next lesson
The security lane keeps growing — browse all tutorials for the current set, and the Secure AI Use Checklist for the printable daily-habits version.