age Command Examples

A simple, modern and secure file encryption tool. See also: age-keygen for generating key pairs. More information: https://github.com/FiloSottile/age.

age --passphrase --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}

age --recipient {{public_key}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}

age --recipients-file {{path/to/recipients_file}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}

age --decrypt --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}

age --decrypt --identity {{path/to/private_key_file}} --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}