Subcommands (1)
Options (6)
-p, --passphrasebooleanGenerate an encrypted file that can be decrypted with a passphrase
age {{[-p|--passphrase]}} {{[-o|--output]}} {{path/to/encrypted_file.age}} {{path/to/unencrypted_file}}-o, --outputbooleanGenerate an encrypted file that can be decrypted with a passphrase
age {{[-p|--passphrase]}} {{[-o|--output]}} {{path/to/encrypted_file.age}} {{path/to/unencrypted_file}}-r, --recipientbooleanEncrypt a file with one or more public keys entered as literals (repeat the `--recipient` flag to specify multiple public keys)
age {{[-r|--recipient]}} {{public_key}} {{[-o|--output]}} {{path/to/encrypted_file.age}} {{path/to/unencrypted_file}}-R, --recipients-filebooleanEncrypt a file to one or more recipients with their public keys specified in a file (one per line)
age {{[-R|--recipients-file]}} {{path/to/recipients_file.txt}} {{[-o|--output]}} {{path/to/encrypted_file.age}} {{path/to/unencrypted_file}}-d, --decryptbooleanDecrypt a file with a passphrase
age {{[-d|--decrypt]}} {{[-o|--output]}} {{path/to/decrypted_file}} {{path/to/encrypted_file.age}}-i, --identitybooleanDecrypt a file with a private key file
age {{[-d|--decrypt]}} {{[-i|--identity]}} {{path/to/private_key_file}} {{[-o|--output]}} {{path/to/decrypted_file}} {{path/to/encrypted_file.age}}Examples (5)
Generate an encrypted file that can be decrypted with a passphrase
age [-p|--passphrase] [-o|--output] path/to/encrypted_file.age path/to/unencrypted_fileEncrypt a file with one or more public keys entered as literals (repeat the `--recipient` flag to specify multiple public keys)
age [-r|--recipient] public_key [-o|--output] path/to/encrypted_file.age path/to/unencrypted_fileEncrypt a file to one or more recipients with their public keys specified in a file (one per line)
age [-R|--recipients-file] path/to/recipients_file.txt [-o|--output] path/to/encrypted_file.age path/to/unencrypted_fileDecrypt a file with a passphrase
age [-d|--decrypt] [-o|--output] path/to/decrypted_file path/to/encrypted_file.ageDecrypt a file with a private key file
age [-d|--decrypt] [-i|--identity] path/to/private_key_file [-o|--output] path/to/decrypted_file path/to/encrypted_file.age