how do i do this with pgp?
i'm writing a lot of perl scripts that need to interact with pgp. however, i have not found an easy way of getting a passphrase to pgp from a script. i realize of course that this is for security; pgp only wants things typed in from a keyboard. however, there are plenty of times when automated processing is desired, and security of the key does not need to be perfect. in these cases, the only way (it seems to me) to get pgp to work is to setenv PGPPASS, which is really terrible security. is there a better way to do this? will there be some easier way in future versions of pgp, like being able to read the passphrase from stdin? e
Clearly you have not read the application note in the documentation that came with PGP. The appnote clearly states:
There is a better way of doing this in PGP 2.2, which is an environment variable called "PGPPASSFD". If this is set, it means that the FIRST thing PGP will do is read the pass phrase from this file descriptor. So, for example, one can set PGPPASSFD to "0" (zero), and then PGP will read the pass phrase from stdin as the first thing.
-derek Derek Atkins, SB '93 MIT EE, G MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) Home page: http://www.mit.edu:8001/people/warlord/home_page.html warlord@MIT.EDU PP-ASEL N1NWH PGP key available
participants (2)
-
Derek Atkins -
Erich von Hollander