Everyday Learning العربية
Computer scienceSecrets online · Lesson 1 of 5 · 7 min

How does a site check your password without knowing it?

When you sign up, the site scrambles your password into a short code, a hash, and throws the password away. Each time you log in, it scrambles what you type and compares the codes.

In this lesson

Your password goes in, a hash comes out.

Your notebook page

  • Same input → same hash.
  • One letter off → a new hash.
  • No way to run it backwards.
  • Login = compare hashes.

Where you'll see it today

Logging in to your school portal, a "forgot password" link that resets instead of telling you, a data-leak headline, an app download's checksum.

The course

Secrets online

Every lesson adds a part. Finish them all to build the Secret-message machine.

  1. 1Password hashesHow does a site check your password without knowing it?
  2. 2Secret chatsHow does WhatsApp keep your chats secret?
  3. 3Digital signaturesHow does the browser padlock prove a site is real?
  4. 4Bitcoin miningHow does Bitcoin work without a bank?
  5. 5Build the machineCan you send a message only your friend can read?
Open in the app Download on the App Store