Grade 9 · Media & Informatics
Explain public/private keys and one-way hashing and where each is used.
Encryption, which you met before, relies on keys. With symmetric encryption the same secret key both locks and unlocks the data — fine if both sides already share the secret. But how do two strangers on the internet agree a secret safely? The clever answer is public-key cryptography: each person has a public key they share openly and a private key they keep secret. A message locked with your public key can only be unlocked with your private key, so anyone can send you a secret without ever sharing one in advance.
Hashing is a different tool. A hash function takes any data and produces a short, fixed-length 'fingerprint'. It is one-way: you cannot turn the fingerprint back into the original, and even a tiny change in the input produces a completely different hash. This makes hashes ideal for checking that a file has not been altered, and for storing passwords — a site can store the hash of your password and check it without ever keeping the password itself.
Together these ideas quietly protect everyday life. Public-key cryptography secures the 'https' connection to a website and the messages in many chat apps; hashing guards passwords and verifies downloads. You do not need to do the maths to use them well — but knowing that keys and hashes exist helps you understand why a padlock, a verified download or a 'we never see your password' promise can be trustworthy.
Have a go right here. Nothing is saved and you can retry as much as you like. Create a free account when you want to save your progress and get Archie, your tutor.
Create a free account to save your progress, track mastery and ask Archie, your tutor, for a hand.
Already with us? Open this lesson in learncoach.ch for mastery tracking and Archie, your tutor.