You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

Almost done. Check your inbox and press the button in our email to confirm. Close

We could not check that you are a person. Please try again. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

What the HTTPS padlock means: how your browser talks in secret on a Wi-Fi anyone can read

You pay for something on the free Wi-Fi of a café. The stranger at the next table can catch a copy of every packet your phone sends. With HTTPS, he cannot read any of them. He also cannot stand in the middle and pretend to be the shop. The padlock is built from a few real pieces, and you meet each one: encryption, the Diffie-Hellman key exchange, the man-in-the-middle attack, private and public keys, certificates and the authorities your phone trusts, the TLS handshake, forward secrecy, and what the padlock never hides.

Questions this comic answers

  1. Can someone on the same public Wi-Fi read what I send?

    Someone on the same public Wi-Fi can catch every piece of data you send, called a packet, with a free program. On a site with plain HTTP, the web's rules with no lock, each piece reads like a postcard, card number included.

    Read episode 1 »
  2. What is encryption in HTTPS?

    Encryption in HTTPS means your phone scrambles each message with a key, a long secret number, before it leaves. The website holds the same key and runs the scrambling backwards, so anyone else who copies the message sees a jumble.

    Read episode 2 »
  3. How do my phone and a website agree on a secret key without sending it?

    Your phone and a website agree on a secret key by each mixing a secret of its own into a shared start, swapping the mixes in the open, then mixing in their secret again. Both get the same key. This is the Diffie-Hellman key exchange.

    Read episode 3 »
  4. What is a man-in-the-middle attack?

    A man-in-the-middle attack is when someone stands between you and a website and builds one secret key with each side. Both ends think they talk to each other, while the attacker reads everything. The encryption works perfectly, with the wrong person.

    Read episode 4 »
  5. How does a website prove who it is in HTTPS?

    A website proves who it is in HTTPS with a digital signature, which only its private key, a secret that never leaves its server, can make. Your phone can check that signature, but nobody else can make one that fits.

    Read episode 5 »
  6. What is a certificate authority?

    A certificate authority is a company that signs a certificate, a document saying which key belongs to a website, after checking that whoever asked really runs that website's name. Yet nothing stops anyone from calling themselves an authority.

    Read episode 6 »
  7. How does my phone know which certificate authorities to trust?

    Your phone knows which certificate authorities to trust from a short list, called root certificates, that was on it before you bought it. When a website's certificate does not lead back to that list, your browser stops and shows a warning.

    Read episode 7 »
  8. Can a scam website have the HTTPS padlock?

    A scam website can have the HTTPS padlock, because the padlock only shows that your connection is private with whoever owns the name in the address bar. It says nothing about whether that owner is honest.

    Read episode 8 »
  9. What is the TLS handshake?

    The TLS handshake is the opening of every HTTPS connection: your phone and the website build a shared secret key and check the website's certificate, its proof of identity. It takes just one trip there and back before your data can follow.

    Read episode 9 »
  10. What is forward secrecy?

    Forward secrecy means a key stolen tomorrow cannot open what was recorded today. Even if a website's private key, the secret it signs with, leaks a year later, the old conversations a thief saved stay unreadable.

    Read episode 10 »
  11. What can the Wi-Fi owner see when I use HTTPS?

    With HTTPS, the Wi-Fi owner can still see which websites you visit, when, for how long and how much data goes back and forth. What you type, read or buy stays scrambled.

    Read episode 11 »