age-plugin-batchpass - non-interactive passphrase encryption plugin for age(1)
age -e -j batchpass
age -d -j batchpass
age-plugin-batchpass is an age(1) plugin that enables non-interactive
passphrase-based encryption and decryption using environment variables.
It is not built into the age CLI because most applications should use native keys instead of scripting passphrase-based encryption.
AGE_PASSPHRASEAGE_PASSPHRASE_FD.AGE_PASSPHRASE_FDAGE_PASSPHRASE.AGE_PASSPHRASE_WORK_FACTORAGE_PASSPHRASE_MAX_WORK_FACTOREncrypt a file with a passphrase:
$ AGE_PASSPHRASE=secret age -e -j batchpass file.txt > file.txt.age
Decrypt a file with a passphrase:
$ AGE_PASSPHRASE=secret age -d -j batchpass file.txt.age > file.txt
Read the passphrase from a file descriptor:
$ AGE_PASSPHRASE_FD=3 age -e -j batchpass file.txt 3< passphrase.txt > file.txt.age
Filippo Valsorda age@filippo.io