Contents
Explainers

What Does HTTPS Actually Encrypt?

Who can see unencrypted traffic, how symmetric encryption, public-key cryptography and certificates fit together with minimal maths, and a step-by-step sequence diagram of what HTTPS protects, what it still exposes, and what a VPN adds on top.

Last updated:

HTTPS encrypts the letter, not the envelope. Page contents, URL paths, cookies and the passwords you type are all encrypted between you and the site. But the domain you visit (via DNS lookups and the SNI field in the handshake), the site’s IP address, when you connect and how much data moves are still visible to anyone along the way. A VPN wraps the envelope too: onlookers only see that you’re talking to the VPN server.

Illustration: a big envelope sealed with a padlock wax seal travels down a road; onlookers with magnifying glasses can read the address label and clock sticker outside but not the contents
  1. ① Contents encryptedURL paths, cookies, passwords, page content
  2. ② Address visibleThe domain (DNS lookup, SNI) and the IP
  3. ③ Time and size visibleWhen you connect and how much data moves
  4. ④ OnlookersOthers on the Wi-Fi, the ISP, networks en route
  5. ⑤ The websiteOnly it can open the envelope and read it

Who can see unencrypted traffic?

Data travelling from your device to a website passes a long line of middlemen:

  • Others on the same Wi-Fi: on open café or airport Wi-Fi, common packet-capture tools can show other people’s unencrypted traffic;
  • Whoever runs the hotspot or router: all traffic passes through their equipment;
  • Your ISP: every byte you send crosses its network;
  • Networks along the route: national and international backbones and exchange points.

If the data is unencrypted (sites starting with http://), these parties can not only read it but change it — injecting ads, swapping download links, slipping malicious code into pages. That’s why nearly every site now uses HTTPS.

Encryption with minimal maths

Symmetric encryption: one key for the lock

The same key encrypts and decrypts. It’s fast and good for large amounts of data — algorithms like AES and ChaCha20. The catch: how do two parties agree on a shared key over a network someone might be listening to?

Public-key cryptography: a public lock and a private key

Each side has a key pair: a public key anyone can have and a private key only its owner knows. Anything encrypted with the public key can only be opened with the matching private key; anything “signed” with the private key can be verified by anyone with the public key.

Modern TLS goes a step further with key exchange (such as ECDHE): each side generates temporary values and swaps only the parts that are safe to share, and both arrive at the same shared key — while an eavesdropper who sees the whole exchange still can’t compute it. That shared key becomes the session key used for fast symmetric encryption.

Certificates: proving a site is who it says

Encryption isn’t enough on its own — you also need to know you’re talking to the real site, not an impostor. The site presents a certificate stating its domain and public key, signed by a trusted certificate authority (CA). Browsers and operating systems ship with a list of these authorities and check the signature, the expiry date and that the domain matches. An impostor can’t produce a valid certificate, so the browser shows a warning.

What HTTPS protects — and what it still exposes

This sequence diagram walks through opening an HTTPS site, marking what an onlooker along the way can see at each step:

Browser DNS server Onlookers Website LOOKUP: PLAIN TEXT BY DEFAULT Look up example.com 1 Here's the IP 2 CONNECT: ADDRESS AND DOMAIN VISIBLE TCP handshake: site IP + port 443 3 ClientHello with SNI domain (plain text) 4 ServerHello; encrypted from the cert on (TLS 1.3) 5 CONTENT: ALL ENCRYPTED Request: path, cookies, forms, passwords 6 Response: pages, images, files 7
Thin lines are plain text an onlooker can read; thick lines are encrypted. The middle column stands for anyone along the path — your ISP, others on the same Wi-Fi.
StepWhat happensWhat onlookers see
①–② DNS lookupThe browser asks for the domain’s IP address, over plain-text UDP by defaultThe domain you’re visiting, and the IP that comes back
③ TCP handshakeA connection opens to port 443 at the site’s IPThe site’s IP address
④ ClientHelloThe first TLS message includes the domain (SNI) so the server knows which certificate to presentThe site’s domain (SNI is plain text)
⑤ ServerHelloThe server replies; in TLS 1.3 everything from the certificate onward is already encryptedThat a handshake is happening — not the certificate
⑥ RequestURL path and parameters, cookies, forms, passwordsNothing but the size and timing
⑦ ResponsePage content, images, downloadsNothing but the size and timing

In summary:

ItemVisible with HTTPS?
Domain you visitVisible (DNS lookup, SNI)
Site’s IP addressVisible
When, how long, how much dataVisible
Full URL path (e.g. /search?q=…)Encrypted
Page content, images, videoEncrypted
Cookies, login state, passwords, formsEncrypted

What a VPN adds on top of HTTPS

A VPN doesn’t replace HTTPS — they stack. Page content is encrypted once by HTTPS, and the whole connection is encrypted again by the VPN. What the VPN hides is precisely the envelope HTTPS leaves exposed:

ItemHTTPS onlyHTTPS + VPN
Which domains you visitVisible along the wayOnlookers only see the VPN server
Site IP addressesVisible along the wayOnlookers only see the VPN server
DNS lookupsPlain text by defaultDone inside the tunnel
Old sites and apps without HTTPSFully visibleEncrypted inside the tunnel
Page contentEncryptedEncrypted

Keep in mind that the VPN server sees the domains you visit once it decrypts the tunnel, so pick a provider that commits to — and technically enforces — not keeping logs. See What is a VPN?.

FAQ

Does the padlock in the address bar mean a site is safe?

It only means your connection to the site is encrypted and the site holds a valid certificate for that domain. It says nothing about whether the site itself is trustworthy — phishing sites get certificates and padlocks too, so still check the domain is spelled right.

With HTTPS, can my workplace still see what I'm doing?

Not the page contents — but it can see which domains you visit, when, and how much data moves. And if your work computer has the company's root certificate installed, its gateway can decrypt HTTPS traffic, which is common on managed devices.

What are encrypted DNS and ECH?

Both plug gaps in HTTPS. Encrypted DNS (DoH / DoT) encrypts domain lookups; ECH (Encrypted ClientHello) encrypts the domain name (SNI) that's otherwise sent in plain text during the handshake. Both are rolling out gradually and need support from the browser, the OS and the site.

Don't have Pangolin yet?

Available for iPhone / iPad, Mac, Windows and Android. New accounts get a free 7-day Pro trial.

Download the app
← All posts