Encrypt a file with one or more public keys that are specified in a recipients file

age

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

click the source code to copy