Public Key Exchange
You'll encrypt a file so only one other person on earth can open it, trade keys with them properly, and send it on a round trip to be sure it works.
About
Public key cryptography sounds abstract until you've traded keys with a real person and sent them something nobody else can read. You'll do it with age or GPG, which are both free, and verify the fingerprint in person so you know the key is really theirs. Then you'll use the same tool on your own backups and sensitive files. Email encryption with PGP is old and awkward, but file encryption is where it shines. You will encrypt something to the wrong key at least once, which is why the round trip is a requirement.
At a glance
- Per requirement
- 25 XP
- Completion bonus
- 150 XP
- Requirements
- 6
- Takes
- One weekend
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- With other people
Requirements
-
1
Generate a keypair with age or GPG and back up the private key somewhere safe. age is simpler and more modern, GPG is everywhere, and either works. The private key goes on an encrypted USB stick or in your password manager, not just on the laptop. Take a screenshot of the public key printed to the terminal. Photo
-
2
Exchange public keys with another person and verify the fingerprint face to face or by voice. Email or chat the key across, then read the fingerprint out loud in person or on a call where you both recognize the voice. This is the step that catches a swapped key. Film the two of you comparing fingerprints, or take a screenshot of the verified key with a note on how you checked it. Photo or video
-
3
Encrypt a file to their key, send it, and have them decrypt it and send one back. The point is to prove it works in both directions. Take a screenshot of the decrypted file on your end and on theirs. Photo
-
4
Encrypt a sensitive folder of your own with a passphrase and store it in the cloud. Tax records, scans of ID and the recovery codes are good candidates. Run age -p or gpg -c on a tarball and upload the encrypted result. Now the cloud provider holds nothing useful. Take a screenshot of the encrypted file sitting in the cloud folder. Photo
-
5
Sign a file and have your partner verify the signature. A signature shows the file came from you and wasn't changed on the way. GPG does this on its own, and minisign or signify do it for age users. Take a screenshot of a good signature verification on their machine. Photo
-
6
Write down what you'd do if your private key leaked, and make the revocation certificate now. That means a revocation certificate for GPG, a new key for age, and a message to everyone who has your old one. Take a photo of the note and a screenshot showing the revocation file exists. Photo