From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57097 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: file encryption in Gnus: a roadmap attempt Date: Wed, 21 Apr 2004 11:58:50 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4nr7uhgw5h.fsf@lifelogs.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082564037 3731 80.91.224.253 (21 Apr 2004 16:13:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2004 16:13:57 +0000 (UTC) Original-X-From: ding-owner+M5637@lists.math.uh.edu Wed Apr 21 18:13:48 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGKM7-0004u5-00 for ; Wed, 21 Apr 2004 18:13:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BGKLv-0005Sk-00; Wed, 21 Apr 2004 11:13:35 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BGKLr-0005Sf-00 for ding@lists.math.uh.edu; Wed, 21 Apr 2004 11:13:31 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BGKLp-0007hJ-ES for ding@lists.math.uh.edu; Wed, 21 Apr 2004 11:13:29 -0500 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id A73E93A0076 for ; Wed, 21 Apr 2004 11:13:28 -0500 (CDT) Original-Received: from asimov (asimov [134.174.9.63]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id i3LGDR122385 for ; Wed, 21 Apr 2004 12:13:28 -0400 (EDT) Original-To: Ding Mailing List 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: Ding Mailing List User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57097 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57097 After a lengthy discussion on emacs-devel, here's my plan for adding encryption to Gnus: 1) move what I used to call "gnus-encrypt.el" to "gencrypt.el" which will be an ELisp package maintained by me and/or others. 2) write a gnus-file.el package, which will provide generic hooks for all interesting Gnus file I/O; for instance newsrc.el will use it. 3) write code in gencrypt.el which will install encryption hooks into the gnus-file hooks. This has to be done because of Emacs export restrictions. I am trying to avoid writing a user-transparent file I/O layer; gencrypt.el should be an API and then the file I/O layer can be built on top, possibly inside gencrypt.el as well. The most common question was, "why not just use file handlers"? An API allows much more control than file handlers, and can be guaranteed not to interfere with other file handlers. My experience with crypt++.el has led me to avoid file handlers as a baseline feature for encryption specifically. Please let me know if you have questions and/or comments. Ted