From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65503 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: encrypt.el in No Gnus 0.7 (was: New Emacs facilities from Gnus) Date: Wed, 31 Oct 2007 13:52:42 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <87zly3y4ru.fsf@catnip.gol.com> <87odejy30k.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193856868 15147 80.91.229.12 (31 Oct 2007 18:54:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2007 18:54:28 +0000 (UTC) Cc: ding@gnus.org, Miles Bader To: emacs-devel@gnu.org Original-X-From: ding-owner+M13998@lists.math.uh.edu Wed Oct 31 19:54:30 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1InIhx-0007yt-K1 for ding-account@gmane.org; Wed, 31 Oct 2007 19:54:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1InIgw-0005d2-9p; Wed, 31 Oct 2007 13:53:26 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1InIgu-0005cm-GV for ding@lists.math.uh.edu; Wed, 31 Oct 2007 13:53:24 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1InIgn-0001dE-Ul for ding@lists.math.uh.edu; Wed, 31 Oct 2007 13:53:24 -0500 Original-Received: from blockstar.com ([170.224.69.95] helo=mail.blockstar.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1InIgi-00059y-00 for ; Wed, 31 Oct 2007 19:53:12 +0100 Original-Received: from tzz (c-67-186-103-18.hsd1.il.comcast.net [67.186.103.18]) by mail.blockstar.com (Postfix) with ESMTP id 755D43F8502; Wed, 31 Oct 2007 12:13:30 -0700 (PDT) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: emacs-devel@gnu.org, ding@gnus.org, Miles Bader In-Reply-To: (Reiner Steib's message of "Mon, 29 Oct 2007 08:49:10 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (darwin) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65503 gmane.emacs.devel:82244 Archived-At: On Mon, 29 Oct 2007 08:49:10 +0100 Reiner Steib wrote: RS> I'll provide a list of new files [in No Gnus 0.7] with some RS> comments. If you need to know more about these files, I'd suggest RS> to make a _separate_ reply and cc the author or maintainer. ... RS> * encrypt.el: RS> ;;; encrypt.el --- file encryption routines RS> ;; Author: Teodor Zlatanov (I haven't brought this up sooner due to lack of time, but this seems like a good chance to discuss it) This could go into mainline Emacs if people are interested. For Gnus it lets a user encrypt the .netrc file for example (I modified netrc.el accordingly). It can encrypt/decrypt any file (ciphers are matched with the file path) and doesn't interfere with the regular Emacs file facilities since it provides a separate API. Software has to explicitly use the encrypt.el API, e.g. (let (encryption-model (encrypt-find-model file)) (if encryption-model (encrypt-insert-file-contents file encryption-model) (insert-file-contents file))) It uses password.el to manage passphrase caching. I posted instructions on usage to the ding list, but they haven't gone into the manual (partly because I didn't know if people would complain about encrypt.el, or if it would eventually move to mainline Emacs). FWIW, I think it's really nice to encrypt the .netrc file when you are on a shared machine. Then you can put IMAP passwords, etc. in the file without the obvious plaintext risks; one passphrase decrypts the whole thing and you don't enter any more passwords until the passphrase expires. Ted