bestpractical / gnupg-interface

http://search.cpan.org/dist/GnuPG-Interface
6 stars 6 forks source link

Batch mode - binary key in the file? #5

Open Jacekalex opened 5 years ago

Jacekalex commented 5 years ago

Can you add to the GNUPG :: Interface module for the --batch --no-default-keyring --keyring '/where/is/key.bin' parameters, would you like to use a key saved in a binary file?

They are talking about such an example of use:

echo "some super secret text" > /tmp/message.txt
gpg --batch --armor --trust-model always --no-default-keyring --keyring /etc/foo.pubkey.bin --recipient foo@bar.com --encrypt < /tmp/message.txt > /tmp/message.txt.pgp

Source: https://www.zulius.com/how-to/send-encrypted-email-from-shell-scripts-cron/

Cheers