Flag to pass the passphrase dynamically while decrypting...

Michael H. Warfield mhw@wittsend.com
Thu Sep 26 01:53:02 2002


On Wed, Sep 25, 2002 at 04:38:23PM -0700, Loo, Peter wrote:

> Hi,

> Does anyone know how I can go about decrypting a file dynamically without getting prompted for a passphrase?  Under the licensed version of PGP, you are able to accomplish this by issuing a command like the following:

> pgp --decrypt --passphrase "xoxoxoxoxoxo" --output $file.txt $file.txt.pgp --overwrite

> I was unable to find the flag --passphrase in "gpg --help".

	echo "xoxoxoxoxoxo" | gpg --passphrase-fd 0 ...

> Thanks. 

> Peter Loo (Senior Programmer)
> peter.loo@bannerhealth.com <mailto:peter.loo@bannerhealth.com> 

> "Whatever you do will be insignificant, but it is very important that you do it."
> -- Mahatma Gandhi

	Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw@WittsEnd.com
  /\/\|=mhw=|\/\/       |  (678) 463-0932   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!