decrypt aes256 encrypted file without gpg-agent

vedaal at vedaal at
Mon Jun 29 19:07:51 CEST 2020

On 6/29/2020 at 12:40 PM, "Fourhundred Thecat" <400thecat at> wrote:

>I don't have gpg-agent installed, on this particular server, where 
>need to decrypt one file.

Try this very long workaround :

[1] Install a fake homedirectory
[2] Install a fake keyring (1 public and secret key that you never use)

Then try this command:

gpg --agent-program --no-use-agent --passphrase yourpassphrasestring --decrypt filename

This is a way of making the --no-use-agent option active.
GnuPG still needs a homedirectory and a keyring before trying to use the passphrase to decrypt

(n.b.  I have not actually tried the above, so am unsure if it is effective)

otherwise , just use GnuPG 1.4.x , and unless you ever need an elliptic key, it should do everything you want.


More information about the Gnupg-users mailing list