Can I pass the password from the command line?
anthony at cajuntechie.org
Wed Dec 16 00:21:44 CET 2015
-----BEGIN PGP SIGNED MESSAGE-----
On 12/15/2015 5:07 PM, Andrew Gallagher wrote:
>> On 15 Dec 2015, at 22:58, Anthony Papillion
>> <anthony at 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?
Thank you for the quick answer, Andrew. After thinking about it, I can
see the absolute folly of having something set up the way I requested
and I appreciate you pointing that out. I had not thought about piping
to stdin - never even crossed my mind!
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
More information about the Gnupg-users