all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco Wahl <marcowahlsoft@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: decrypt a file with hidden key (EPA)
Date: Thu, 01 Oct 2015 09:30:13 +0200	[thread overview]
Message-ID: <848u7navwa.fsf@gmail.com> (raw)
In-Reply-To: mailman.87.1443680829.16064.help-gnu-emacs@gnu.org

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


       reply	other threads:[~2015-10-01  7:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.87.1443680829.16064.help-gnu-emacs@gnu.org>
2015-10-01  7:30 ` Marco Wahl [this message]
2015-09-30 10:10 decrypt a file with hidden key (EPA) Philipp Haselwarter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=848u7navwa.fsf@gmail.com \
    --to=marcowahlsoft@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.