passphrase

Stephan Stapel stephan.stapel@tu-clausthal.de
Sun, 10 Dec 2000 01:52:52 +0100


Try this:

gpg --decrypt filename.gpg --passphrase-fd 0 1> filename.txt < filename.key

This means that you are piping stdout (1) to (>) filename.txt and
also piping to 0 from (<) filename.key

That should do the trick for you!

Stephan

----- Original Message -----
From: "Ashraf Gad" <ashrafg@gtriad.com>
To: <gnupg-users@gnupg.org>
Cc: <AshrafG@gtriad.com>
Sent: Sunday, December 10, 2000 12:55 AM
Subject: passphrase



>
> Can we use GPG to decrypt any file using batch mode .. i.e . I do not want
> to manually enter the passphrase. I need to store it in a file and pass
the
> file name in my options.
>
>
> Ex :
>
> When I Encrypt my file I use :
>
> gpg.exe --output [Filename.gpg] --recipient [name] Filename.txt
>
> where : Filename.txt is my original file
> Filename.gpg is my encrypted file
> name is my key name
>
> Now When I'm decrypting my file, I need to do the following
>
> gpg.exe --output [Filename.txt] --decrypt ????? Filename.key
> Filename.gpg
>
> where : Filename.txt is my decrypted file
> Filename.gpg is my encrypted file
> Filename.key is my passphrase stored in a file
>
>
>
> Please CC: me in your reply as I am not subscribed.
>
> Ashraf Gad
> Senior Software Engineering
> G.Triad
> Tel: 212.924.8005 X 131
> Fax: 212.924.8036
> AshrafG@gtriad.com
> http://www.gtriad.com
>
>
> --
> Archive is at http://lists.gnupg.org - Unsubscribe by sending mail
> with a subject of "unsubscribe" to gnupg-users-request@gnupg.org
>
>
-- Archive is at http://lists.gnupg.org - Unsubscribe by sending mail with a subject of "unsubscribe" to gnupg-users-request@gnupg.org