Page MenuHome GnuPG

-q switch is not quiet enougth
Closed, ResolvedPublic

Description

Release: gpg (GnuPG) 1.2.3

Environment

Debian sid

Linux piranha 2.4.22-cryptoloop-orinoco-sb2 #3 Sat Nov 22 14:47:53 CET 2003 i686 GNU/Linux

Description

When decrypting a file, debugging / informational output about the cipher is sent to STDERR. Tough it can be circumvented by redirecting STDERR to /dev/null it's not how it should be done.

How To Repeat

echo -e "testfile\n\nsome text goes here" > test.txt
gpg --cipher-algo RIJNDAEL256 -c test.txt
gpg -q --cipher-algo RIJNDAEL256 -d test.txt.gpg

Output:
gpg: AES256 encrypted data
testfile

some text goes here

Fix

Workaround is to redirect STDERR to /dev/null when decrypting.