age
A simple, modern, and secure file encryption tool. tldr-pages
On several platforms
Several platforms
Generate an encrypted file that can be decrypted with a passphrase
age --passphrase --output path/to/encrypted_file.age path/to/unencrypted_fileIdentifyEncrypt 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.age path/to/unencrypted_fileIdentifyEncrypt 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.txt --output path/to/encrypted_file.age path/to/unencrypted_fileIdentifyDecrypt a file with a passphrase
age --decrypt --output path/to/decrypted_file path/to/encrypted_file.ageIdentifyDecrypt a file with a private key file
age --decrypt --identity path/to/private_key_file --output path/to/decrypted_file path/to/encrypted_file.ageIdentify