Security

Encryption

Encryption explained: how a key turns data into ciphertext, symmetric vs asymmetric encryption, how HTTPS uses both, and why passwords are hashed instead.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

Encryption, explained by cats. Kitty has a secret. Very important tuna plans. She wants to send the message to another cat. But the internet is full of snooping cats. Anyone could read it. So Kitty uses encryption. She takes her message and locks it in a box.

Only the right key can open it. Now if a sneaky cat intercepts the message, they see gibberish. No tuna. No clues. The cat on the other side has the key. They unlock the box. Message revealed. That’s encryption. Sometimes both cats share the same key.

That’s symmetric encryption. Fast. Simple. Sometimes they use two keys. One to lock. One to unlock. That’s asymmetric encryption. Websites use encryption every day. Passwords. Messages. Payments. Encryption keeps secrets a secret. Keeps data safe. And keeps snooping cats out of your tuna.