FiloSottile/age
Security & PrivacyA CLI tool, file format and Go library for simple public-key file encryption with small explicit keys and UNIX pipes.
What it does
age is a file encryption tool, an accompanying file format, and a Go library. It is built around small, copy-pasteable public keys (age1...), a single default cipher suite, and no configuration file, so it fits into shell pipelines the way tar or gzip does. It supports public-key encryption to one or more recipients, passphrase encryption, and encryption to existing SSH public keys. Recent versions also include post-quantum recipients and an age-inspect command for reading metadata from an encrypted file without decrypting it. The format is specified independently at age-encryption.org/v1, and interoperable implementations exist in Rust, TypeScript and other languages.
The intended users are developers, sysadmins and anyone who needs to encrypt files or backups from a script. The Go library is the way to integrate age into another Go program.
Quick start
Install through the package manager for your platform, for example brew install age on macOS/Linux, apt install age on Debian 12+/Ubuntu 22.04+, or winget install --id FiloSottile.age on Windows. Pre-built binaries are available from the download page; if Go is installed, go install filippo.io/age/cmd/...@latest builds the tools from source. The installation section lists the full set of package-manager commands.
Then generate a key pair, encrypt a stream to the public key, and decrypt with the private key:
$ age-keygen -o key.txt
Public key: age1pq167[...]
$ tar cvz ~/data | age -r age1pq167[...] > data.tar.gz.age
$ age --decrypt -i key.txt data.tar.gz.age > data.tar.gz
For symmetric use, age -p secrets.txt > secrets.txt.age prompts for a passphrase or generates one if left empty. Multiple recipients are supported by repeating -r, or by listing keys in a file passed with -R. See the age(1) man page for the full option reference and the usage section for recipient and identity file semantics.
Post-quantum and legacy keys
Post-quantum recipients are built into age v1.3.0 and later. age v1.4.0 warns whenever legacy non-PQ (X25519-based) keys are used, and future versions will refuse to encrypt with them. The project's stated position is that files encrypted with legacy keys could become retroactively decryptable sooner than previously expected, so it recommends generating new post-quantum keys and re-encrypting existing files. This affects both newly created keys and SSH keys, which are not post-quantum. Details are in the PQ warning page.
Constraints
SSH key support intentionally does not use ssh-agent; decryption needs the private key file. Encrypting to an SSH key also embeds a public-key tag in the ciphertext, making it possible to identify which key a file was encrypted to, and SSH keys are not post-quantum. Recipient and identity files are line-based and ignore blank lines and # comments. Hardware PIV tokens such as YubiKeys require the separate age-plugin-yubikey. The project is BSD-3-Clause licensed and implemented in Go.
HotRepo's take
age has accumulated 24.7k stars and saw 50 new stars on the Go daily list on 2026-12-04, ranking 9th that day. Its history on Hacker News is more telling than the current numbers: the 2019 launch drew 466 points and 197 comments, the 1.0 release in 2021 drew 494 points and 88 comments, and a 2024 repost still drew 289 points and 121 comments, with the author showing up in the thread to answer questions (discussion). Readers there repeatedly framed age as a Unix-philosophy successor to GPG/PGP and discussed whether it could become a standard preinstalled tool (comment). That recurring interest around a mature, single-purpose encryption CLI is the context behind the steady star count.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.