age encrypts and decrypts files from the command line using compact keys and a documented format. It also ships as a Go library for building compatible tools.
Overview
age protects files at rest with a small set of explicit operations: generate key pairs, encrypt to one or more recipients, and decrypt with identity files. Pipelines follow UNIX-style composability, reading from standard input and writing to standard output when paths are omitted.
Public keys use short age1… strings, while age-keygen produces identity files for decryption. You can target multiple recipients by repeating flags or listing keys in recipient files. Optional PEM armor wraps ciphertext for environments that expect text encoding.
Passphrase mode encrypts without pre-shared public keys; age can autogenerate passphrases or accept one interactively. Hybrid post-quantum keys address future quantum threats via dedicated flags and longer recipient strings, with optional plugin binaries for older builds.
Convenience options include encrypting to ssh-ed25519 or ssh-rsa public keys and decrypting with the matching private key file, plus metadata inspection without decryption through a separate inspect command. Plugins extend hardware token support, and other language implementations interoperate with the same format specification.
Key features
- Public-key file encryption
- Multiple recipients per file
- Passphrase encryption mode
- Post-quantum hybrid keys
- SSH public key recipients
- Recipient and identity files
- PEM armor output
- Encrypt metadata inspection
Use cases
- Encrypting backups and archives
- Sharing files to several people
- SSH key-based encryption
- Passphrase-protected secrets
- Pipeline-friendly shell workflows