Age encryption¶
Create secret key (public key is included as comment):
$ age-keygen -o /tmp/age.key
$ cat /tmp/age.key
# created: 2026-05-08T14:13:31+02:00
# public key: age1…
AGE-SECRET-KEY-1TD…
Simple example of piping text into age:
Example of encrypting a file:
Decrpt file: