Mailing List Archive

Decrypt without entering passphrase?
Hello list!
Is it somehow possible to decrypt a document without entering the
unlock-passphrase for secret keys?
I`m working on a php-script which automatically encrypts and then decrypts
messages.
Php lets you execute anything on commandline-level, just like typing into a
console.
I already used "-batch" for batchmodus and trusted the key "fully", but gpg
still wants me to enter the phrase.
Anybody know how to skip/automate this? Is there a option where the
passphrase can be entered together
with the "--decrypt" command?

Ok, thank you for helping me!
Re: Decrypt without entering passphrase? [ In reply to ]
> Berkant Ă–zdemir:

> I already used "-batch" for batchmodus and trusted the key "fully", but gpg
> still wants me to enter the phrase.

you trust a key if you are sure of the identity of it's owner and of the
validity of keys signed by him. this has absolutely nothing to do with the
passphrase, which encrypts your keys to prevent abuse.

> Anybody know how to skip/automate this? Is there a option where the
> passphrase can be entered together with the "--decrypt" command?

the passphrase can be given via the --passphrase-fd.

clemens
Re: Decrypt without entering passphrase? [ In reply to ]
On Fri, 16 Jun 2000, clemensF wrote:

> > Anybody know how to skip/automate this? Is there a option where the
> > passphrase can be entered together with the "--decrypt" command?
>
> the passphrase can be given via the --passphrase-fd.

See also doc/FAQ of the latest test version for hints on how to better
protect your key in an automated environment.

Werner

--
Werner Koch OpenPGP key 621CC013
OpenIT GmbH tel +49 211 239577-0
Birkenstr. 12 email wk@OpenIT.de
D-40233 Duesseldorf http://www.OpenIT.de