unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* decrypt a file with hidden key (EPA)
@ 2015-09-30 10:10 Philipp Haselwarter
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Haselwarter @ 2015-09-30 10:10 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm trying to use emacs to decrypt a file that was encrypted with gpg's
hidden-encrypt-to option, i.e. the file doesn't tell which key it was
encrypted for. But epa doesn't query me for a key to use during
decryption, it just fails with

> Error while decrypting with "gpg":
> 
> gpg: encrypted with RSA key, ID 00000000
> gpg: decryption failed: No secret key

Can EPA be configured to deal with this? Or is there something smart in
my gpg.conf missing?

cheers,
-- 
Philipp Haselwarter




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: decrypt a file with hidden key (EPA)
       [not found] <mailman.87.1443680829.16064.help-gnu-emacs@gnu.org>
@ 2015-10-01  7:30 ` Marco Wahl
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Wahl @ 2015-10-01  7:30 UTC (permalink / raw)
  To: help-gnu-emacs

Philipp Haselwarter <philipp@haselwarter.org> writes:

> I'm trying to use emacs to decrypt a file that was encrypted with gpg's
> hidden-encrypt-to option, i.e. the file doesn't tell which key it was
> encrypted for. But epa doesn't query me for a key to use during
> decryption, it just fails with
>
>> Error while decrypting with "gpg":
>> 
>> gpg: encrypted with RSA key, ID 00000000
>> gpg: decryption failed: No secret key
>
> Can EPA be configured to deal with this? Or is there something smart in
> my gpg.conf missing?

+1  (I'm also interested in answers to these questions.)

Sidenote:  Actually it is possible to decrypt a file which has been
encrypted with the hidden-encrypt option by referencing the key
explicitly.  E.g. concretely

gpg --try-secret-key 3E7C2CBACBABDA5BD6995A4C49010A040A3AE6F2 encrypted.file.gpg


-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-01  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.87.1443680829.16064.help-gnu-emacs@gnu.org>
2015-10-01  7:30 ` decrypt a file with hidden key (EPA) Marco Wahl
2015-09-30 10:10 Philipp Haselwarter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).