There is under 1.4. Don't know if it is in v2. I'm not at my desk to pop the script open. But you could pipe the passphrase via stain and tell gpg to grab it from there. Be careful as that still leaves it in the clear to those reading your script. Potential local users could also see it if you echo'd it to the pipe.
Sent from my Verizon Wireless 4G LTE smartphone -------- Original message -------- From: Andrew Gallagher <andr...@andrewg.com> Date: 12/15/2015 15:09 (GMT-08:00) To: Anthony Papillion <anth...@cajuntechie.org> Cc: gnupg-users@gnupg.org Subject: Re: Can I pass the password from the command line? > On 15 Dec 2015, at 22:58, Anthony Papillion <anth...@cajuntechie.org> wrote: > > I'd like to script encryption and decryption from the command line. Is > there a way to pass the encryption passphrase to GnuPG from the > command line. I don't think there is a password parameter, and I'd strongly recommend not doing it even if there was. Many OSes make the command line parameters of processes available to any local user. Have you tried piping the password to stdin? Andrew _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users