How to use age for encryption

What is age? It might mean Actually Good Encryption. It's a tool that makes encryption easy, by not having any configuration options.

Installation

Use your package manager to install age.

OS Command
Windows choco install age.portable
Mac brew install age
Ubuntu apt install age

Or use the web version (work in progress).

Encrypting

To encrypt to someone's public key:

age --encrypt --recipient age1publickey --output encrypted-file.txt.age input-file.txt

You can provide many recipients by repeating --recipient public-key for each one.

Decrypting

If you want to make your own key, so that you can be a recipient, then you use age-keygen.

age-keygen --output secret-key.txt

Now your secret key is in secret-key.txt (never share it), and the public key (share that one) is printed to the screen, and is also in secret-key.txt, so you don't lose it.

A public key is in lowercase, and a secret key is in caps. Never share the yelling one!

To decrypt a message sent to you:

age --decrypt --identity path/to/secret-key.txt encrypted-file.txt.age

Contact: owl@u8.is

Public keys
age1ugla4pmd9r69xuld5f3fq6z7394jlgf4qjq2tahvpw9weyjukqrqt80cna
    
-----BEGIN PGP PUBLIC KEY BLOCK-----

mDMEZaWN6xYJKwYBBAHaRw8BAQdAaDfhWCD8psQq3mJaRYY4dbOpbD3n8YnVPS/t
QbRlpc+0D293bCA8b3dsQHU4LmlzPoiTBBMWCgA7FiEEWrMjBTWiQB67jBK8OSHn
PrxyXZoFAmWljesCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQOSHn
PrxyXZo2zQD/ed1nJ1apovwknksQX522oXNKzV3hOlFuw8qUp5TvM94A/2sufkKq
X+ZFlVMGR5P8RUe5y6xXi6baugneq8k1OjAFuDgEZaWN6xIKKwYBBAGXVQEFAQEH
QF3Uopt0KxpPSWqyyH0dSjQPuTuyqHRBJCR1vfGMfzRtAwEIB4h4BBgWCgAgFiEE
WrMjBTWiQB67jBK8OSHnPrxyXZoFAmWljesCGwwACgkQOSHnPrxyXZoGbwEAqgAj
qc65LjguaK2vr/ybfrkBz2XiGSN7ahEbZRUy2KYBAK7zXTbafSeIqmp7XUHy2BMW
5GgskBfyLTxqJiQT9sUG
=Nz4U
-----END PGP PUBLIC KEY BLOCK-----
    
Fucka alla bilar, vi kör Ford Festiva.