Wirebook › Lesson 4 of 18
Secret codes: encryption and hashing
Every time you see the padlock, your messages are being scrambled so that only the right computer can unscramble them. Let's play with the two big ideas behind that: encryption (lock and unlock) and hashing (a fingerprint that can't be reversed).
Where you meet these every day
- The padlock (HTTPS): your browser and the website agree on a secret key using clever maths that works even if someone is listening, then use it to encrypt everything.
- Passwords: good websites never store your password. They store a slow hash of it, then hash what you type and compare fingerprints.
- Downloads: sites publish the hash of a file so you can check yours wasn't changed on the way.
- End-to-end encryption: the message is locked on your device and only unlocked on the other person's, so even the company in the middle only ever sees scrambled bytes.