Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: "Daiki Ueno" <ueno@unixuser.org>
Cc: Miles Bader <miles@gnu.org>, ding@gnus.org, emacs-devel@gnu.org
Subject: Re: encrypt.el in No Gnus 0.7
Date: Fri, 02 Nov 2007 09:08:54 -0500	[thread overview]
Message-ID: <m2sl3od9jd.fsf@lifelogs.com> (raw)
In-Reply-To: <54a15d860711010824w6888aafdgb0a0e5d48f6fdebb@mail.gmail.com> (Daiki Ueno's message of "Fri, 2 Nov 2007 00:24:04 +0900")

On Fri, 2 Nov 2007 00:24:04 +0900 "Daiki Ueno" <ueno@unixuser.org> wrote: 

DU> 2007/11/2, Ted Zlatanov <tzz@lifelogs.com>:
>> On Thu, 1 Nov 2007 10:30:54 +0900 "Daiki Ueno" <ueno@unixuser.org> wrote:
DU> epa-file.el in EasyPG can also do that.  Have you looked at it?
DU> I think it is much easier to use since it does not need elisp setup
DU> like encrypt-file-alist.
>> 
>> encrypt-file-alist can be set up via Customize.  It's intended as an
>> API, however, so I am not concerned about end users too much.

DU> I think encrypt-file-alist is too much custamisable since GnuPG
DU> records what cipher is used to encrypt in the PGP message.  See
DU> RFC2440.

Again, you're tightly bound to GnuPG.  Does EasyPG support arbitrary,
user-supplied ciphers?  I didn't see that ability.

DU> Yes, EasyPG does not (yet) provide a way to specify the cipher
DU> algorithm but as I mentioned above we need to specify only the first
DU> time.  Is it not enough to edit ~/.gnupg/gpg.conf or manually call the
DU> gpg command with options?

Definitely no.  Again, you're tightly bound to GnuPG.  Your README says:

"EasyPG is an all-in-one GnuPG interface for Emacs.  It has two
aspects: convenient tools which allow to use GnuPG from Emacs (EasyPG
Assistant), and a fully functional interface library to GnuPG (EasyPG
Library)."

There's nothing wrong with that, but you're entirely dependent on GnuPG
to do the encryption and decryption, so you most definitely do not
provide the same services as encrypt.el.

DU> I also think that your XOR cipher is not a good idea as a fallback
DU> algorithm.  Have you ever read Simon Singh's "The Code Book"?

It's not a fallback, it's an example implementation.  I have not read
that particular book, but I have studied encryption algorithms in
college and have used them at the API level many times since.

DU> Yes, EasyPG is a bit complex and invasive.  But IMO sometimes
DU> usability should be given priority over simplicity &
DU> non-invasiveness.
>> 
>> Sure, and that's your choice to make within the EasyPG package, which
>> has specific needs.  I think an API must be simple an non-invasive,
>> though, and encrypt.el is by those standards a better API than
>> epa-file.el or any other *crypt* package I've seen.  If I'm wrong,
>> please tell me.

DU> epa-file.el is an *application* not a *libarary* (I'm a bit tired of
DU> explanating these difference again and again...).  

Sorry, but you'll have to be patient with me.  I did not get that
distinction from the EasyPG docs, perhaps I missed it.

DU> epg.el is the library and it provides the API.  Since it only
DU> accepts string or file for encryption and do not cache passphrase,
DU> it is simpler than encrypt.el.

We're talking in circles.

What you consider simplicity is in fact reliance on an external tool,
which handles everything for you.  I think encryption and decryption
should be possible with an API, without external tools.  If we disagree
and EasyPG is the only encryption API in Emacs, then I will keep
maintaining encrypt.el in the Gnus development tree.

Ted

  parent reply	other threads:[~2007-11-02 14:08 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-28  9:20 Gnus in Emacs is updated to " Miles Bader
2007-10-28  9:46 ` Leo
2007-10-28  9:58 ` Miles Bader
2007-10-28 14:25   ` Reiner Steib
2007-10-29  7:50     ` Glenn Morris
2007-10-29 19:26       ` Reiner Steib
2007-10-29  2:56   ` Daiki Ueno
2007-10-29  8:30     ` Michael Albinus
2007-10-30  4:16       ` Daiki Ueno
2007-10-29  7:49   ` New Emacs facilities from Gnus (was: Gnus in Emacs is updated to No Gnus 0.7) Reiner Steib
2007-10-31 18:52     ` encrypt.el in No Gnus 0.7 (was: New Emacs facilities from Gnus) Ted Zlatanov
2007-10-31 20:36       ` encrypt.el in No Gnus 0.7 Reiner Steib
2007-10-31 21:05         ` Ted Zlatanov
2007-11-01  1:30           ` Daiki Ueno
2007-11-01 15:04             ` Ted Zlatanov
2007-11-01 15:24               ` Daiki Ueno
2007-11-01 23:08                 ` Richard Stallman
2007-11-02 14:12                   ` Ted Zlatanov
2007-11-02 21:36                     ` Stefan Monnier
2007-11-04 19:56                     ` Richard Stallman
2007-11-05  1:49                       ` Ted Zlatanov
2007-11-05  8:47                         ` Richard Stallman
2007-11-05 15:13                           ` Ted Zlatanov
2007-11-06  2:16                             ` Richard Stallman
2007-11-06 17:58                               ` Ted Zlatanov
2007-11-07  7:56                                 ` Richard Stallman
2007-11-07 14:34                                   ` Ted Zlatanov
2007-11-08  0:58                                     ` Daiki Ueno
2007-11-08  1:16                                       ` Daiki Ueno
2007-11-08 14:48                                         ` Ted Zlatanov
2007-11-08 23:11                                           ` Daiki Ueno
2007-11-09  0:19                                             ` Leo
2007-11-09  2:39                                             ` Ted Zlatanov
2007-11-09  6:39                                             ` Stephen J. Turnbull
2007-11-10  3:00                                               ` Richard Stallman
2007-11-09 10:40                                           ` Sascha Wilde
2007-11-07  7:56                                 ` Richard Stallman
2007-11-07 14:47                                   ` Ted Zlatanov
2007-11-06 21:11                           ` Reiner Steib
2007-11-07 15:01                             ` Ted Zlatanov
2007-11-07 16:12                               ` Stefan Monnier
2007-11-07 17:34                                 ` Ted Zlatanov
2007-11-07 16:47                               ` Reiner Steib
2007-11-07 17:25                                 ` Ted Zlatanov
2007-11-02 14:08                 ` Ted Zlatanov [this message]
2007-11-03  2:49                   ` Daiki Ueno
2007-11-05  1:27                     ` Ted Zlatanov
2007-11-05  1:37                       ` Daiki Ueno
2007-11-01  7:32       ` encrypt.el in No Gnus 0.7 (was: New Emacs facilities from Gnus) Richard Stallman
2007-11-01  8:15         ` Daiki Ueno
2007-11-01 14:47     ` New Emacs facilities from Gnus Simon Josefsson
2007-11-01 16:16       ` Daiki Ueno
2007-11-01 20:09       ` Reiner Steib
2007-11-02  2:06         ` Richard Stallman
2007-11-04 19:56     ` New Emacs facilities from Gnus (was: Gnus in Emacs is updated to No Gnus 0.7) Richard Stallman
2007-11-14 23:41       ` New Emacs facilities from Gnus Lars Magne Ingebrigtsen
2007-11-04 19:56     ` New Emacs facilities from Gnus (was: Gnus in Emacs is updated to No Gnus 0.7) Richard Stallman
2007-11-14 23:42       ` New Emacs facilities from Gnus Lars Magne Ingebrigtsen
2007-11-15 15:31         ` Simon Josefsson
2007-11-17 12:28           ` ecomplete.el (was: New Emacs facilities from Gnus) Reiner Steib
2007-11-17 13:23             ` ecomplete.el Tassilo Horn
2007-11-18  2:18               ` ecomplete.el Bastien
2007-11-04 19:56     ` New Emacs facilities from Gnus (was: Gnus in Emacs is updated to No Gnus 0.7) Richard Stallman
2007-11-04 20:36       ` New Emacs facilities from Gnus Manoj Srivastava
2007-11-04 21:12       ` Reiner Steib
2007-11-04 19:56     ` New Emacs facilities from Gnus (was: Gnus in Emacs is updated to No Gnus 0.7) Richard Stallman
2007-11-05 22:23       ` New Emacs facilities from Gnus Arne Jørgensen
2007-11-06  8:26         ` Stefan Monnier
2007-11-06  8:37         ` Richard Stallman
2007-11-06 22:35           ` Arne Jørgensen
2007-11-06 11:33     ` New Emacs facilities from Gnus (was: Gnus in Emacs is updated to No Gnus 0.7) CHENG Gao
2007-11-06 18:45       ` New Emacs facilities from Gnus Reiner Steib
2007-11-07  3:35         ` CHENG Gao
2007-11-07  7:56       ` New Emacs facilities from Gnus (was: Gnus in Emacs is updated to No Gnus 0.7) Richard Stallman
2007-11-11 23:53     ` Richard Stallman
2007-11-13  1:39       ` New Emacs facilities from Gnus Ted Zlatanov
2007-11-13 20:03         ` Richard Stallman
2007-11-11 23:54     ` New Emacs facilities from Gnus (was: Gnus in Emacs is updated to No Gnus 0.7) Richard Stallman
2007-10-29 19:24   ` Gnus in Emacs is updated to No Gnus 0.7 Reiner Steib
2007-10-29 23:11     ` Miles Bader

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=m2sl3od9jd.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=ueno@unixuser.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.
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 NNTP newsgroup(s).