From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel E. Doherty" Subject: Org-crypt encrypting PROPERTIES? Date: Tue, 08 Mar 2016 11:10:40 -0600 Message-ID: <87oaao520f.wl-ded-law@ddoherty.net> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adL9m-0007c0-GC for emacs-orgmode@gnu.org; Tue, 08 Mar 2016 12:10:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adL9g-0005sY-H3 for emacs-orgmode@gnu.org; Tue, 08 Mar 2016 12:10:50 -0500 Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:36373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adL9g-0005sJ-73 for emacs-orgmode@gnu.org; Tue, 08 Mar 2016 12:10:44 -0500 Received: by mail-oi0-x22d.google.com with SMTP id r187so15302428oih.3 for ; Tue, 08 Mar 2016 09:10:43 -0800 (PST) Received: from micah.ddoherty.net (104-182-116-177.lightspeed.mssnks.sbcglobal.net. [104.182.116.177]) by smtp.gmail.com with ESMTPSA id k2sm1546074oey.3.2016.03.08.09.10.41 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 08 Mar 2016 09:10:41 -0800 (PST) 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: Org-mode List 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 -----BEGIN PGP MESSAGE----- Version: GnuPG v1 hQEMA3KA9hHAqfLwAQf+I7AWvahZROMa7TMSf4vTJ20JBYjBNDecceQYjDEwmaaC LRhsqF984JGmudFupBTMIDS6okx6HE3Ko7Pm/H4wmCH5t6V8uolM4Hz0acP0uNE6 BmgAEUNrchIfJZeBR6JYjQA93d3h/05q6si1VBgVnhKyXLkJhL8B6QUCiMZQ80qQ aWiD2RU7t0CViFrIpbkhOlH7lpTtrO9qUW9qQtjBRAamsnjYYna42i7cGbOYp0aW rXyxhRkNfelzrhc7bI8xhOorVr/3gqGpJFCkrrELD4oWHgc1mfZoqk+BZbCJF3yX ZQKUhz2jt5gx+gATYnM3etdPwHW9ASvvKQGA9OkU+tLAtwHJRl7zuCXpYJ2+7DA2 L5USdwgVlfs0jnpatPfhaCkRPD+5JEca0lZVNCZpclJRbk72hmNxeivlOk9ctiXQ QxYo5FaJGElYMZuxXRcUingEFlMH20F7QBPDoDHIVJhjcGTkAfnuXp96upCWoJwu sag0tE5gkuVhnbKVAeVWoNdAamZOzAGsW1Dl2rJyD25zlLwEagGwnmr8NfMd6aIC ZCHv1/DgFXr7zHOZzg2OhHjQj9JI3NwpRej9TPcSX4UTmXrxQcUELI84m5HWuqoJ 10ieoDaWZmmoOaSfoDUF3VCDSEjLSnkhVI0Jxp6V17Po1zjugrjZIoDMRw5Qby87 MEo4o+LKVzDnKoPjYSZMEIAarDG26uf8oBz3Ypb62kkkk1uqFJo0vcDVYK7jnKJn 7HCihEFi9baRzZGaO72+nMJad/m8K0LlMBoruR5QFoVV43+vNQdRT9x7mwO3DJpN dDe1yRGh6aLQKpQoIrKq5LT4Y+TZXWTWYQ== =GXUz -----END PGP MESSAGE----- ========================================================================= Notice that the property drawer got encrypted. Am I reading the manual right, that this should not happen? -- ==================================================== Daniel E. Doherty ded@ddoherty.net