Lion Cipher Lab

Encrypt and sign with GPG (public-key crypto you can use today)

Why it matters

Two everyday problems have the same answer, and GPG is it. The first is privacy: you want to send a file or note so that ONLY one specific person can read it, even if it passes through email servers, cloud storage, or a USB stick along the way. The second, which most people never learn, is authenticity: you want a reader to be able to PROVE that a file, a message, or a piece of software really came from you and was not tampered with in transit. Public-key cryptography solves both with one idea -- a matched pair of keys. Your PUBLIC key is safe to hand out to the whole world; your PRIVATE key…

What you'll learn

Steps in this lab

  1. The one big idea: two keys, and what each one is for
  2. Open a terminal and install GnuPG
  3. Generate your own key pair
  4. Make a revocation certificate NOW, before you ever need it
  5. Export and publish your PUBLIC key so others can write to you
  6. Import a recipient's public key and verify it by fingerprint
  7. Encrypt a file for a recipient, and decrypt one sent to you
  8. Sign a file or message, and verify a signature
  9. Key management and the habits that keep you safe
  10. My take: learn signing, not just encryption

Open the full interactive lab →