emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Daniel E. Doherty" <ded@ddoherty.net>
Cc: ded-law@ddoherty.net, Org-mode List <emacs-orgmode@gnu.org>
Subject: Re: Org-crypt encrypting PROPERTIES?
Date: Thu, 10 Mar 2016 09:55:24 +0100	[thread overview]
Message-ID: <87d1r2n24j.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87oaao520f.wl-ded-law@ddoherty.net> (Daniel E. Doherty's message of "Tue, 08 Mar 2016 11:10:40 -0600")

Hello,

"Daniel E. Doherty" <ded@ddoherty.net> 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

      parent reply	other threads:[~2016-03-10  8:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-08 17:10 Org-crypt encrypting PROPERTIES? Daniel E. Doherty
2016-03-09  4:05 ` Bingo
2016-03-10  9:05   ` Eric S Fraga
2016-03-10  8:55 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1r2n24j.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=ded-law@ddoherty.net \
    --cc=ded@ddoherty.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).