Post by AnonymousPost by GuyPost by John Kennersongpg2 -u 0xmyid --hidden-recipient 0xmyid -r 0xmyfriend -e -a
gpg2 - gpg (GnuPG) 2.1.2, libgcrypt 1.6.3
0xmyid - my pub dsa3072 key ID.
gpg2 file.asc
gpg: encrypted with ELG key, ID 00000000
gpg: decryption failed: No secret key
Why this may happen?
gpg2 --try-all-secrets file.asc
gpg: encrypted with 1024-bit ELG key, ID xxxxxxxx, created xxxx-xx-xx
"xxxxxx"
gpg: encrypted with ELG key, ID 00000000
gpg: encrypted with ELG key, ID 00000000
gpg: decryption failed: No secret key
** gpg --decrypt --try-all-secrets file.asc **
$ gpg --hidden-recipient myid -ear myfriend file
$ gpg -d --try-all-secrets file.asc
gpg: anonymous recipient; trying secret key 0xDEADBEEF ...
gpg: anonymous recipient; trying secret key 0xABADCAFE ...
gpg: anonymous recipient; trying secret key 0x0DEFACED ...
gpg: anonymous recipient; trying secret key BAADF00D ...
gpg: anonymous recipient; trying secret key 0xBADDCAFE ...
You need a passphrase to unlock the secret key for
user: "0xBADDCAFE"
1024-bit RSA key, ID 0xBADDCAFE, created 1970-01-01
gpg: anonymous recipient; trying secret key 0xBBADBEEF ...
You need a passphrase to unlock the secret key for
user: "0xBBADBEEF"
1024-bit RSA key, ID 0xBBADBEEF, created 1970-01-01
gpg: anonymous recipient; trying secret key 0xBEEFCACE ...
You need a passphrase to unlock the secret key for
user: "BEEFCACE"
1024-bit RSA key, ID 0xBEEFCACE, created 1970-01-01
gpg: anonymous recipient; trying secret key 0xCAFEBABE ...
gpg: anonymous recipient; trying secret key 0xCAFED00D ...
gpg: okay, we are the anonymous recipient.
gpg: encrypted with 1024-bit RSA key, ID 0xCAFEFEED, created 2015-05-08
"myfriend"
gpg: encrypted with RSA key, ID 0x00000000
foo
$