Lock and Key A song about how encryption works
Sing it back
Can you finish the lyrics?
Eight quick questions on “Lock and Key”. No music, just your memory. Then share your score and challenge a friend.
How encryption works in one paragraph
Encryption works by using a mathematical algorithm and a secret key to scramble readable data, called plaintext, into unreadable ciphertext that only someone with the right key can turn back. Symmetric encryption, such as AES, uses the same key to encrypt and decrypt, and it is fast, but both sides must already share that key. Public-key (asymmetric) encryption, such as RSA, uses a key pair: a public key that anyone can use to encrypt a message and a private key, kept by its owner, that decrypts it. HTTPS, the padlock in your browser, uses TLS, which relies on public-key methods to set up a shared secret key and then fast symmetric encryption for the data itself. Longer keys are harder to crack by brute force, because each extra bit doubles the number of possible keys.
Key facts from the song
- Plaintext is readable data; ciphertext is the scrambled version produced by encryption.
- The security of good encryption rests on keeping the key secret, not the algorithm.
- Symmetric encryption (such as AES) uses one shared key to encrypt and decrypt.
- Public-key encryption (such as RSA) uses a pair: a public key to encrypt and a private key to decrypt.
- HTTPS uses TLS, which combines public-key methods to agree a key with symmetric encryption for the data; each extra bit of key length doubles the possible keys.
Where it fits in your course
Lyrics
Verse 1
Plaintext is the message that you write, plain as day for all to read
Encryption scrambles it to ciphertext, random noise is all they see
The algorithm can be public, the real secret is the key
Without the key, that ciphertext looks random as can be
Chorus
Symmetric means one shared key to lock and to unlock
AES runs fast and strong, protecting data round the clock
Public-key means a pair: share the public key with all you meet
They lock with it, but only your private key unlocks, keep that one discreet
Verse 2
The padlock in your browser, HTTPS and TLS, uses both
Public-key to agree a shared key, then symmetric carries the load
End-to-end: just sender and receiver hold the keys, not the server between
Each extra bit of key doubles all the guesses, keeps the secrets clean
Chorus
Symmetric means one shared key to lock and to unlock
AES runs fast and strong, protecting data round the clock
Public-key means a pair: share the public key with all you meet
They lock with it, but only your private key unlocks, keep that one discreet
Outro
Plaintext in, ciphertext out, the method’s out in the open
Keep the key secret, keep it long, and the lock stays unbroken
How encryption works flashcards
Say the answer out loud, then tap the card to check it. Or test yourself quick-fire.
1What are plaintext and ciphertext?
Plaintext is readable data; ciphertext is the scrambled, unreadable version made by encryption.
2How many keys does symmetric encryption like AES use?
One shared key, used both to encrypt and to decrypt.
3In public-key encryption, which key encrypts and which decrypts?
Anyone can encrypt with the public key; only the private key, kept by its owner, decrypts.
4How does HTTPS use both kinds of encryption?
TLS uses public-key methods to set up a shared key, then symmetric encryption protects the data.
Questions about how encryption works
Still wondering about something? Ask us and we’ll reply within two working days.
What is the difference between symmetric and asymmetric encryption?
Symmetric encryption uses one shared key to both lock and unlock data, as AES does. Asymmetric, or public-key, encryption uses a pair of keys: a public key that anyone can use to encrypt and a private key that only the owner holds to decrypt.
How does HTTPS encryption work?
When you connect to an HTTPS site, your browser and the server use TLS. Public-key methods let them verify the site and agree on a shared secret key, then fast symmetric encryption protects the data sent between them.
What does end-to-end encryption mean?
It means messages are encrypted on the sender’s device and can only be decrypted on the recipient’s device. The service passing them along does not have the keys, so it cannot read the content, though it may still see details like who messaged whom and when.
Why does encryption key length matter?
The key length sets how many possible keys there are, and each extra bit doubles that number. A 128-bit AES key has 2¹²⁸ possibilities, far too many to try one by one with any known computer.