decrypt aes256 encrypted file without gpg-agent

Dmitry Alexandrov dag at
Tue Jun 30 15:41:36 CEST 2020

Fourhundred Thecat <400thecat at> wrote:
> In case of gpg, there is one mode where you generate your key pair, change configuration files, or any other read-write operation.
> But for general usage, there is no reason for the key pair to need to be writable.

Sure.  So there is none:

	$ chmod a-w $GNUPGHOME/pubring.kbx $GNUPGHOME/private-keys-v1.d/*
	$ echo foo | gpg -qe --default-recipient-self | gpg -qd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list