From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org-crypt encrypting PROPERTIES? Date: Thu, 10 Mar 2016 09:55:24 +0100 Message-ID: <87d1r2n24j.fsf@nicolasgoaziou.fr> References: <87oaao520f.wl-ded-law@ddoherty.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adwLV-0001IJ-E6 for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 03:53:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adwLQ-0006z6-JY for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 03:53:25 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adwLQ-0006z2-Db for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 03:53:20 -0500 In-Reply-To: <87oaao520f.wl-ded-law@ddoherty.net> (Daniel E. Doherty's message of "Tue, 08 Mar 2016 11:10:40 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Daniel E. Doherty" Cc: ded-law@ddoherty.net, Org-mode List Hello, "Daniel E. Doherty" writes: > I am trying to use org-crypt to encrypt certain headings, but when I invoke > org-crypt-entry on an entry with properties, it encrypts the properties as > well. From the manual, "Org-crypt will encrypt the text of an entry, but not > the headline, or properties" it would appear that its not supposed to do that. > > It causes a problem if the file is synced with org-caldav, which adds an UID > property if one does not exist. To it, an encrypted entry always looks like > the property does not exist, so it always adds a new one, resulting in a > series of nested encryptions. I can recover the original only by decrypting, > deleting the PROPERTIES drawer, and repeating until the clear text appears. > > For example, with this entry: > > ========================================================================= > * Test this with Crypt > :PROPERTIES: > :JUNK: Nothing > :END: > > Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod > tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, > quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo > consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse > cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non > proident, sunt in culpa qui officia deserunt mollit anim id est laborum. > > ========================================================================= > > After I run org-encrypt-entry on the headline, I get this: > > ========================================================================= > * Test this with Crypt > > > ========================================================================= > > Notice that the property drawer got encrypted. Am I reading the manual right, > that this should not happen? Fixed. Thank you. Regards, -- Nicolas Goaziou