|
NAMEage-plugin-batchpass - non-interactive passphrase encryption plugin for age(1) SYNOPSISage -e -j batchpass
DESCRIPTIONage-plugin-batchpass is an age(1) plugin that enables non-interactive passphrase-based encryption and decryption using environment variables. WARNINGThis functionality is not built into the age CLI because most applications should use native keys instead of scripting passphrase-based encryption. Humans are notoriously bad at remembering and generating strong passphrases. age uses scrypt to partially mitigate this, which is necessarily very slow. If a computer will be doing the remembering anyway, you can and should use native keys instead. There is no need to manage separate public and private keys, you encrypt directly to the private key:
Likewise, you can store a native identity string in an environment variable or through your CI secrets manager and use it to encrypt and decrypt files non-interactively:
The age CLI also natively supports passphrase-encrypted identity files, so you can use that functionality to non-interactively encrypt multiple files such that you will be able to decrypt them later by entering the same passphrase:
Finally, when using this plugin care should be taken not to let the password be persisted in the shell history or leaked to other users on multi-user systems. ENVIRONMENT
EXAMPLESEncrypt a file with a passphrase:
Decrypt a file with a passphrase:
Read the passphrase from a file descriptor:
SEE ALSOage(1) AUTHORSFilippo Valsorda age@filippo.io
|