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

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

Previous episode Public Wi-Fi: what a stranger on the same network can read

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

Encryption: how HTTPS turns every message into nonsense for everyone but the website

The padlock shows in your browser. A stranger on the same Wi-Fi still catches every message your phone sends. But now each message looks like random letters. Only the website can read it.

  1. 1 The change happens inside Miva's phone, before a packet leaves. The phone scrambles its words with a key, a long secret number. Scrambling a message so that only holders of the key can read it is called encryption.inside Miva's phonecard numberthe keyscramblek%7#x!Qz&2

    The change happens inside Miva's phone, before a packet leaves. The phone scrambles its words with a key, a long secret number. Scrambling a message so that only holders of the key can read it is called encryption.

  2. 2 Rono's copy is a jumble of signs. To read it, he would have to guess the key, and there are far too many possible keys for any computer to try them all.???RonoWhich key?Too many!k%7#x!Qz&2

    Rono's copy is a jumble of signs. To read it, he would have to guess the key, and there are far too many possible keys for any computer to try them all.

  3. 3 At the other end, the shop's server holds the very same key. It runs the scrambling backwards, and the card number comes out as Miva typed it. One key locks, and the same key unlocks.k%7#x!Qz&2the same keyunscramblecard numbershop.exampleOrderreceived!

    At the other end, the shop's server holds the very same key. It runs the scrambling backwards, and the card number comes out as Miva typed it. One key locks, and the same key unlocks.

  4. 4 There is a catch. Miva's phone and the shop had never talked before tonight, so neither one had the key. And if one of them sent it over the Wi-Fi, Rono would catch it like every other packet.Miva's phoneno key yetshop.exampleno key yetRonoGo on,send it!

    There is a catch. Miva's phone and the shop had never talked before tonight, so neither one had the key. And if one of them sent it over the Wi-Fi, Rono would catch it like every other packet.

  5. Quick check

    Rono catches the shop's answer on its way back to Miva. Can he read it?The answer, on itsway back. CanRono read it?

    Rono catches the shop's answer on its way back to Miva. Can he read it?

    Show the answer

    No. The shop scrambles its answer with the same key, and Rono does not have it.

  6. Go further

    Two names for what you just saw.symmetric encryptionone key that scramblesand unscrambles, as herescrambleAESthe way of scramblingmost phones use for this

    Two names for what you just saw.

Next episode Diffie-Hellman key exchange: how your phone and a website build the same key without sending it

Share this comic

More comics