Newbie question

Todd Hesla hesla at aem.umn.edu
Wed Nov 21 00:06:12 CET 2007


I am a newbie to GnuPG, and am using gpg-agent so that I only need to enter
my passphrase once.  If I decrypt a file (which I encrypted to myself), I am
of course asked to enter my passphrase.  If I decrypt it a second time,
gpg-agent supplies my passphrase from its cache.  However, gpg2 still displays
the passphrase prompt-message in the terminal:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$$ ll test*
-rw-rw-r-- 1 todd todd   6 2007-11-20 15:14 test
$$ cat test
Test.
$$ gpg2 -e test
$$ ll test*
-rw-rw-r-- 1 todd todd   6 2007-11-20 15:14 test
-rw-rw-r-- 1 todd todd 599 2007-11-20 16:26 test.gpg
$$ gpg2 -d test.gpg

You need a passphrase to unlock the secret key for
user: "Todd Hesla (General) <hesla at aem.umn.edu>"
2048-bit ELG key, ID 1C0B50A0, created 2007-11-20 (main key ID 65A3115F)

Test.
$$ 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

How can I get rid of this prompt-message?  Apparently, it is not sufficient
to just re-direct standard output and standard error to "/dev/null":

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$$ gpg2 -d test.gpg &>/dev/null

You need a passphrase to unlock the secret key for
user: "Todd Hesla (General) <hesla at aem.umn.edu>"
2048-bit ELG key, ID 1C0B50A0, created 2007-11-20 (main key ID 65A3115F)

$$ 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Any tips on how to eliminate this prompt-message (when I decrypt the file
the second time) will be very much appreciated.

Thank you.

-- 
Todd Hesla
Department of Aerospace Engineering and Mechanics
University of Minnesota
Minneapolis, Minnesota
USA



More information about the Gnupg-users mailing list