all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: GNU Emacs users list <help-gnu-emacs@gnu.org>
Subject: A question on encryption
Date: Wed, 27 Aug 2014 21:27:24 +0200	[thread overview]
Message-ID: <20140827212724.7d0065e0@aga-netbook> (raw)

Hi all,

I'm experimenting with encryption in Emacs using the EPG library.  I'm
using Emacs version:

============================================================
GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-08-22 on chindi02, modified by Debian
============================================================

and gpg version:

============================================================
gpg (GnuPG) 1.4.14
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
============================================================

I created a test file (call it "test") with a single line of text and
did two things:

1. C-x C-f test RET, C-x C-w test.gpg RET

Then I selected the key and hit ok.

2. From the command line:
gpg -e -r key-id -o test2.gpg test

The two resulting files were different (difference in length of 3
bytes; find-file-literally and manual inspection showed that the
beginnings were identical, but the endings were not).

My question is: why is that so?  I instrumented the function
epg-start-encrypt for Edebug, and it seems that the argument list it
constructed was identical or equivalent to the one I'm giving on the
command line.

My other question is: is it fine?  I'm an (almost) complete layman
with crypto, and I don't want to open some huge security hole because
of my ignorance.  (I want to store my email passwords in encrypted
files, set a very short timeout in gpg-agent and connect it to my
mailing client, so that stealing my laptop won't enable the thief to
impersonate me.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



             reply	other threads:[~2014-08-27 19:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-27 19:27 Marcin Borkowski [this message]
2014-08-28  0:22 ` A question on encryption Eric Abrahamsen
2014-08-28  1:00   ` Marcin Borkowski
2014-08-28  6:53   ` Alan Schmitt
     [not found] <mailman.7656.1409167662.1147.help-gnu-emacs@gnu.org>
     [not found] ` <7zbnr5mesz.fsf@example.com>
2014-08-28  6:30   ` Marcin Borkowski
2014-08-29  3:22 ` Stefan Monnier
2014-08-29 12:28   ` Marcin Borkowski

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=20140827212724.7d0065e0@aga-netbook \
    --to=mbork@wmi.amu.edu.pl \
    --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.