all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
To: Eric Hanchrow <eric.hanchrow@gmail.com>
Cc: 1471@emacsbugs.donarmstrong.com
Subject: bug#1471: 23.0.60; Visiting GnuPG-encrypted file yields "file exists, but cannot be read"
Date: Wed, 03 Dec 2008 14:47:06 +0900	[thread overview]
Message-ID: <87ocztbyjp.fsf@broken.deisui.org> (raw)
In-Reply-To: <87hc5mjzex.fsf@offby1.atm01.sea.blarg.net> (Eric Hanchrow's message of "Tue, 02 Dec 2008 08:48:54 -0800")

>>>>> In <87hc5mjzex.fsf@offby1.atm01.sea.blarg.net> 
>>>>>	Eric Hanchrow <eric.hanchrow@gmail.com> wrote:

> At the shell:

>   $ cd /usr/local/src/emacs-via-git/src/

> create a tiny encrypted file.

>   $ echo Fee fi fo fum | gpg --symmetric > decrypt-me.gpg
>   gpg: gpg-agent is not available in this session

> You can't see it in this transcript, but I typed a very short passphrase: "foo"

> Proof that the file is indeed encrypted:

>   $ cat decrypt-me.gpg 
>   -----BEGIN PGP MESSAGE-----
>   Version: GnuPG v1.4.9 (GNU/Linux)

>   jA0EAwMCJkAO8t1a89pgySSta9bxO023orfaXtK+Y0RuUP+8ohMfpLLgVlYWiTeN
>   sX8mKnE=
>   =HGzp
>   -----END PGP MESSAGE-----

> Proof that I haven't forgotten the passphrase:

>   $ gpg --decrypt < decrypt-me.gpg 
>   gpg: CAST5 encrypted data
>   gpg: gpg-agent is not available in this session
>   Enter passphrase:                   gpg: encrypted with 1 passphrase
>   Fee fi fo fum
>   gpg: WARNING: message was not integrity protected

> Now let's visit the file in emacs:
>   $ ./emacs -Q -nw

> I then typed C-x C-f decrypt-me.gpg RET.  Emacs prompted me for the
> passphrase for symmetric encryption, as I'd expect.  I entered it, and
> then instead of seeing "Fee fi fo fum" in the buffer, as I'd expected, I
> saw an error in the echo area: "File exists, but cannot be read".

I can't reproduce it.  Could you please try again with

(setq epg-debug t)

and provide the content of the " *epg-debug*" buffer?

Regards,
-- 
Daiki Ueno






  reply	other threads:[~2008-12-03  5:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87hc538rtc.fsf@broken.deisui.org>
2008-12-02 16:48 ` bug#1471: 23.0.60; Visiting GnuPG-encrypted file yields "file exists, but cannot be read" Eric Hanchrow
2008-12-03  5:47   ` Daiki Ueno [this message]
2008-12-17  7:10   ` bug#1471: marked as done (23.0.60; Visiting GnuPG-encrypted file yields "file exists, but cannot be read") Emacs bug Tracking System
2008-12-12  4:14 bug#1471: 23.0.60; Visiting GnuPG-encrypted file yields "file exists, but cannot be read" Rudi Schlatte

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=87ocztbyjp.fsf@broken.deisui.org \
    --to=ueno@unixuser.org \
    --cc=1471@emacsbugs.donarmstrong.com \
    --cc=eric.hanchrow@gmail.com \
    /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.