From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Maillard Subject: Re: Re: Feature request: Selective encryption Date: Mon, 3 Sep 2007 03:00:29 +0200 Message-ID: <200709030100.l8310TLF008342@localhost.localdomain> References: Reply-To: Xavier Maillard Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IS1N5-00029M-Sd for emacs-orgmode@gnu.org; Sun, 02 Sep 2007 22:09:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IS1My-00024A-2X for emacs-orgmode@gnu.org; Sun, 02 Sep 2007 22:08:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS1Mx-00023i-GJ for emacs-orgmode@gnu.org; Sun, 02 Sep 2007 22:08:51 -0400 Received: from master.uucpssh.org ([193.218.105.66]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IS1Mw-0003G2-2K for emacs-orgmode@gnu.org; Sun, 02 Sep 2007 22:08:50 -0400 In-reply-to: (message from Austin Frank on Sat, 01 Sep 2007 09:54:59 +0300) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Austin Frank Cc: emacs-orgmode@gnu.org Hi, A few other options: - EPG also has the function epa-encrypt-region. It asks for a recipient's key to use for encrypting, and does symmetric encryption if none is selected. This could be used to selectively encrypt certain subtrees. Especially given that... - message-mode has functions like mml-secure-encrypt (there are lots of others in the mml-secure-* family). These functions use the strategy of inserting tags around the region to be encrypted. I haven't actually read the functions, but from the outside it looks like the tags are used to set the region, the region is encrypted/signed, and then the tags are removed from the outgoing copy of the message. FWIW, the tags look like (the leading # was added by me to keep the tag from actually doing anything in this message): # <#secure method=pgpmime mode=sign> As a personnal taste, I'd rather want using message-mode since it is already part of the official GNU Emacs distribution. For the rest, up to Carsten to see what to use. The values of the ENCRYPT_* properties could be the key to use, or just t. If the value is t, either the key will be pulled from a file-level variable, or the user will be prompted for which key to use (as epa-encrypt-region normally does). I love this idea. That's the easiest I could think of too. Instead of t, I think ENCRYPT_PROMPT would be a best (no need to be an elisp expert to understand it). Regards, Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org