age

Age CLI Tool - Complete Guide (2025) A modern encryption tool for Unix & Linux. age is a simple, modern and secure file encryption tool, format, and Go library. Project: FiloSottile/age Table of Contents Installation Quick Start Basic Concepts Daily Commands Examples Advanced Usage Best Practices Installation In Termux pkg update pkg install age Verify Installation age --version Quick Start Generate a Key Pair age-keygen -o -f ~/.ssh/age_key.txt Encrypt a File age -r <PUBLIC_KEY> -o encrypted.txt.age plaintext.txt Decrypt a File age -d -i ~/.ssh/age_key.txt encrypted.txt.age Basic Concepts Key Components Component Description Public Key Recipient key (x25519 format) - used to encrypt Private Key Sender key - kept secret, used to decrypt age file Encrypted file with .age extension (convention) Passphrase Alternative to key-based encryption Key Formats Public Keys: Start with age1 (example: age1aaa2xmjspxn73gv4py3n...) Private Keys: Start with AGE-SECRET-KEY-1 (stored in key files) Daily Commands 1. Generate Keys Generate a new private key and save to file age-keygen -o -f ~/my_age_key.txt Flags: ...

October 29, 2025 · 11 min