About
age encrypts files with either a passphrase or a recipient public key. Use it to protect a file quickly without managing a full keyring. It has a tiny set of options and no configuration files.
Install it
pkg install age
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
5 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
age -p -o notes.enc notes.txt Encrypt a file with a passphrase you type, and write the result to a chosen output file. age -d notes.enc Decrypt a file locked with a passphrase. age -r age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p -o secret.enc secret.txt Encrypt to the public key of a recipient. Only they can open it. age -R recipients.txt -o backup.enc archive.tar Encrypt to every key listed in a file. Handy for a small team. age -a -p -o message.enc message.txt Produce armoured text output for pasting into a chat. Worked example
Run age -p -o notes.enc notes.txt and this is what you should see.
$ age -p -o notes.enc notes.txt
Enter passphrase:
Confirm passphrase:
Encryption successful
notes.enc written (2.1 KiB) Developed by
Filippo Valsorda and contributors · released under BSD-3-Clause.