Forrest logo
back to the age tool

age:tldr:10aa1

age: Encrypt a file with one or more public keys that are specified in a recipients file.
$ age --recipients-file ${path-to-recipients_file} ${path-to-unencrypted_file} --output ${path-to-encrypted_file}
try on your machine

This command is using a program called "age" to encrypt a file using a recipients file.

Here's a breakdown of the command:

  • age: This is the name of the program or command being executed.

  • --recipients-file: This is an option flag that is used to specify the file containing the recipients' public keys. The program will use these keys to encrypt the file.

  • ${path-to-recipients_file}: This is a placeholder for the actual path to the recipients' file on your system. You need to replace it with the correct path.

  • ${path-to-unencrypted_file}: This is also a placeholder for the actual path to the file you want to encrypt. Replace it with the correct path.

  • --output: This is another option flag used to specify the output file path where the encrypted file will be saved.

  • ${path-to-encrypted_file}: This is a placeholder for the actual path where you want the encrypted file to be saved. Replace it with the desired path.

To use this command, make sure you have the "age" program installed on your system. Replace the placeholders with the correct file paths, and execute the command in the terminal or command prompt.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the age tool