Generate an encrypted file that can be decrypted with a passphrase

age

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

click the source code to copy