💾 Archived View for nox.im › snippets › actually-good-encryption captured on 2023-07-10 at 13:37:36. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-06-03)
-=-=-=-=-=-=-
I prefer age[1] pronounced [aɡe̞] over GPG. It features a simple cli, small keys, no config requirements and UNIX-style composability.
Generate your own pubkey or use mine if you want to send me something
age-keygen -o key.txt Public key: age1vpyptw64mz2vhtj7tvfh9saj0y8zy8fguety5n3wpmwzpkn0rd6swh02an
The `key.txt` file also includes the `AGE-SECRET-KEY` of similar length.
To encrypt a file for me, use the pubkey provided above:
tar cvz ~/data | age -r age1vpyptw64mz2vhtj7tvfh9saj0y8zy8fguety5n3wpmwzpkn0rd6swh02an > data.tar.gz.age
I'll decrypt it with
age --decrypt -i key.txt data.tar.gz.age > data.tar.gz
That's it.