From: Carsten Dominik <dominik@science.uva.nl>
To: Peter Jones <mlists@pmade.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: org-crypt and PROPERTIES location
Date: Fri, 20 Mar 2009 19:33:26 +0100 [thread overview]
Message-ID: <08666E65-8DB3-4557-88CD-6CA0BFB22134@uva.nl> (raw)
In-Reply-To: <86fxh8xfxm.fsf@pmade.com>
On Mar 20, 2009, at 6:27 PM, Peter Jones wrote:
> Carsten Dominik <dominik@science.uva.nl> writes:
>> we don't have a good function for this. Also, it is not so much about
>> extracting the contents, more about finding the boundaries. In some
>> ways I think it would actually be better to use a tag for encryption
>> instead of a property, because this would allow to encrypt everything
>> except the headline. What about we change this to a tag crypt_KEY?
>> Hmm, I am not sure if encryption keys would make valid tags.....
>
> AFAIK, the key ID is only needed for encryption. The encrypted text
> will contain a pointer to the key needed for decryption.
>
> Therefore, I suggest that we do this:
>
> - Have a defcustom for the default key ID to use (I think it will be
> very common that you'll use the same key to encrypt everything)
>
> - Allow overriding the key ID in an inheritable property (if you need
> to encrypt a heading using a different key than the default)
>
> - Use a tag matcher to specify headings to encrypt (another defcustom
> that will be used to find headings that should be encrypted
> before-save)
>
> - Encrypt everything under the heading, including properties (even if
> the property has the key ID, it won't be needed for decryption, so
> the entire contents can be encrypted)
>
> Am I missing anything?
This sounds perfect to me.
You can use the mapping API to walk through the file
and do the encryption. This has the advantage that you could,
in principle do de- and encryption in many files in one step.
Default should be the current file, though, exactly as you suggest.
- Carsten
>
>> I'd very much like to see this improved and stabilized, so that we
>> can
>> include this with Org, this would be valuable to have. I am sure
>> John
>> would not mind if you did the final steps with it. Am I right, John?
>
> I had a private conversation with John, and he's completely open to me
> putting the finishing touches on org-crypt and getting it included in
> the org distribution.
>
> Are there any org-crypt users out there that want to throw in their
> $0.02?
>
> --
> Peter Jones, http://pmade.com
> pmade inc. Louisville, CO US
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-03-20 18:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-20 0:29 org-crypt and PROPERTIES location Peter Jones
2009-03-20 13:23 ` Carsten Dominik
2009-03-20 17:27 ` Peter Jones
2009-03-20 18:33 ` Carsten Dominik [this message]
2009-03-23 12:59 ` news
2009-03-24 2:50 ` Peter Jones
2009-03-25 3:15 ` news
2009-03-20 19:50 ` John Wiegley
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=08666E65-8DB3-4557-88CD-6CA0BFB22134@uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=mlists@pmade.com \
/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).