From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55761 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: netrc.el now supports encoded files Date: Wed, 07 Jan 2004 01:09:33 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <4n3caut1yy.fsf@collins.bwh.harvard.edu> <4nptdx99g3.fsf@collins.bwh.harvard.edu> <4nwu84y967.fsf@collins.bwh.harvard.edu> <4nfzesy6h9.fsf@collins.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073434197 26938 80.91.224.253 (7 Jan 2004 00:09:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2004 00:09:57 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M4301@lists.math.uh.edu Wed Jan 07 01:09:54 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 1Ae1Gj-0000iS-00 for ; Wed, 07 Jan 2004 01:09:54 +0100 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 1Ae1Gc-0002c1-00; Tue, 06 Jan 2004 18:09:46 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Ae1GX-0002bw-00 for ding@lists.math.uh.edu; Tue, 06 Jan 2004 18:09:41 -0600 Original-Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by justine.libertine.org (Postfix) with ESMTP id 73AE13A0026 for ; Tue, 6 Jan 2004 18:09:39 -0600 (CST) Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.10/8.12.10) with ESMTP id i0709ZAU030157 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 7 Jan 2004 01:09:36 +0100 Original-To: Chris Green Mail-Copies-To: nobody X-Hashcash: 0:040107:cmg@dok.org:e73dda4e7fce0e24 X-Hashcash: 0:040107:ding@gnus.org:3e92c644f17c5553 In-Reply-To: <4nfzesy6h9.fsf@collins.bwh.harvard.edu> (Ted Zlatanov's message of "Tue, 06 Jan 2004 18:58:42 -0500") 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:55761 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55761 Ted Zlatanov writes: >> Anyway, it sounds more and more like this could be a separate >> package. "encrypt.el" is available, AFAICT. Using various hooks, >> such a package might be able to work without the cooperation of Gnus >> at all. Then you could request automatic encryption/decrypt of >> ~/.newsrc.eld by saying (add-to-list 'encrypt-file-alist >> '("~/.newsrc.eld." gpg-symmetric)) or something like that. > > I think cooperation is good. Trying to hide the reality of the > situation - that we're encoding files with external utilities or > internal functions - is sure to cause problems in the long run. I see > it in crypt++.el, and it's not pretty. It interferes with many > packages. Yes. OTOH, in some (non-Gnus) situations it might useful to be able to "advice" a package to encrypt its files, without changing the package. > I think I'd like to start on gnus-encrypt.el. These functions will > be available: > > gnus-encrypt-insert-file-contents > gnus-encrypt-write-file-contents > > and these variables: > > gnus-encrypt-file-alist > > The format of that variable: list of filenames or regular expressions > matched with an encrypting/decrypting method. Methods: > > '(gpg PUBKEY) ; RSA, RSA-E, RSA-S, ELG-E, DSA, ELG > '(gpg CIPHER) ; 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH > '(openssl CIPHER) ; too many to list > '(internal CIPHER) ; rijndael, RC4, XOR, Base64 etc. > > What do you think? Any comments before I start coding? This sounds good to me. And probably more reliable than any crypt++ approach. Btw, the "ecrypto" XEmacs package contain (3)DES and Blowfish in elisp as well.