text pinentry

Werner Koch wk at gnupg.org
Mon Mar 2 09:41:57 CET 2009

On Sat, 28 Feb 2009 18:43, quick at sparq.org said:

> Is there any way to get the direct inline text method of passphrase query/
> response for GnuPG 2.x like there was in GnuPG 1.4.9.  In other words, no popup 
> dialog boxes and no curses?

gpg2 allows that only for symmetric encryption.  The reason is that
eventually all public-key crypto involving the private key will be moved
to gpg-agent.

However, you can control gpg-agent from your application.  There is
gpg-preset-passphrase and if you need more control, you may want to
write your own pinentry.  The environment variable PINENTRY_USER_DATA is
passed from gpg2 down to the pinentry and provides a way to convey
control information to a newly written pinentry.



Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.

More information about the Gnupg-users mailing list