2021-04-20 01:14:13 +01:00
|
|
|
# age
|
|
|
|
|
|
|
|
> A simple, modern and secure file encryption tool.
|
2023-08-09 15:01:20 +01:00
|
|
|
> See `age-keygen` for how to generate key pairs.
|
2023-01-24 01:06:24 +00:00
|
|
|
> More information: <https://github.com/FiloSottile/age>.
|
2021-04-20 01:14:13 +01:00
|
|
|
|
|
|
|
- Generate an encrypted file that can be decrypted with a passphrase:
|
|
|
|
|
|
|
|
`age --passphrase --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
|
|
|
|
|
2023-08-09 15:01:20 +01:00
|
|
|
- Encrypt a file with one or more public keys entered as literals (repeat the `--recipient` flag to specify multiple public keys):
|
2021-04-20 01:14:13 +01:00
|
|
|
|
2023-08-09 15:01:20 +01:00
|
|
|
`age --recipient {{public_key}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
|
2021-04-20 01:14:13 +01:00
|
|
|
|
2023-06-17 17:07:37 +01:00
|
|
|
- Encrypt a file to one or more recipients with their public keys specified in a file (one per line):
|
2021-04-20 01:14:13 +01:00
|
|
|
|
2023-06-24 15:35:31 +01:00
|
|
|
`age --recipients-file {{path/to/recipients_file}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
|
2021-04-20 01:14:13 +01:00
|
|
|
|
|
|
|
- Decrypt a file with a passphrase:
|
|
|
|
|
|
|
|
`age --decrypt --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}`
|
|
|
|
|
|
|
|
- Decrypt a file with a private key file:
|
|
|
|
|
|
|
|
`age --decrypt --identity {{path/to/private_key_file}} --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}`
|