How to avoid weird mestage on file deciphering

Daniel Cerqueira dan.list at brilhante.top
Fri Nov 10 14:32:24 CET 2023


Hi.

I am trying to do a script that has `gpg --decrypt`.
This is what I am getting:

LC_ALL=C gpg --decrypt ~/file.gpg 
gpg: encrypted with RSA key, ID 0x0000000000000000
gpg: anonymous recipient; trying secret key 0x2D3C49A28079BBBD ...
gpg: anonymous recipient; trying secret key 0xB8A344FF3684F216 ...
gpg: anonymous recipient; trying secret key 0x60E8A97AEB2F2DB9 ...
gpg: okay, we are the anonymous recipient.
asdf

I want to avoid all the messages and only output "asdf" (the content of
the file). How can I do this with gpg?

I have tried some variations, but I always get this "gpg: anonumous
recipient" message (that I want to avoid).

My key is on a Yubikey. Don't know if this matters for this issue.

Thanks.




More information about the Gnupg-users mailing list