Lion Cipher Lab

Encrypt individual files with age

Why it matters

Full-disk encryption protects a whole device when it's off, but it does nothing the moment you email a file, drop it in cloud storage, hand it to someone on a USB stick, or keep a backup on a drive that someone else can reach. For those everyday situations you want to protect one file at a time, so it stays scrambled no matter where it travels. age is a free, open-source tool built exactly for that: it's modern, small, and far simpler than the older standard (GPG), with one obvious way to do each thing instead of dozens of flags. In a few minutes you can lock a sensitive attachment, protect a…

What you'll learn

Steps in this lab

  1. What file encryption is, and when it actually helps
  2. The two ways age locks a file: keys, or a passphrase
  3. Open a terminal and install age
  4. Generate your keypair
  5. Encrypt a file to a public key
  6. Decrypt with the private key
  7. Encrypt with a passphrase instead (no keys to manage)
  8. Share safely, and respect the limits
  9. Why age is the right first encryption tool

Open the full interactive lab →