1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:42:19 +02:00
tldr/pages/common/age.md
Vítor Henrique 4f75ffc1db
pages*: make "See also" conform to the new syntax (#12756) (#12354)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: spageektti <git@spageektti.cc>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2024-06-03 22:21:58 +02:00

1 KiB

age

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

  • Generate an encrypted file that can be decrypted with a passphrase:

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

  • Encrypt a file with one or more public keys entered as literals (repeat the --recipient flag to specify multiple public keys):

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

  • Encrypt a file to one or more recipients with their public keys specified in a file (one per line):

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

  • 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}}