emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: Magnus Nilsson <magnus.nilsson@alumni.chalmers.se>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-crypt and org-mobile-crypt; user info?
Date: Thu, 21 Oct 2010 17:05:01 -0300	[thread overview]
Message-ID: <4cc09cf5.0d11640a.13b1.6134@mx.google.com> (raw)
In-Reply-To: <AANLkTimyxGd=Gum38JWwd5ipVVbdMAmvpUTvvfEqQWLi@mail.gmail.com>


I'm new to org-crypt, but I was able to make it work last week. First, I
created a PGP key using seahorse (not required, but make thinks easier).

Then I put the code below in my .emacs file
--8<---------------cut here---------------start------------->8---
(require 'org-crypt)
(org-crypt-use-before-save-magic) ; Encrypts everything with the crypt tag
                                  ; when the buffer is saved
(setq org-tags-exclude-from-inheritance (quote ("crypt")))
(setq org-crypt-key "XXXXXXXX")
--8<---------------cut here---------------end--------------->8---
where the XXXXXXXX is the ID of my PGP key in seahorse. With this all
headings with the tag crypt will be encrypted when the file is saved.

If I want to see the content I run the command org-decrypt-entry (or
org-decrypt-entries to decrypt all headings in the file). When I save the
file again everything will be encrypted.

I'm only asked for the password of my PGP key when I want to decrypt a
heading. If you do don't want to create a PGP key then I think you will
need to set a property in the heading with the crypt key and org will ask
you for a password to encrypt the heading.

--
Darlan

At Thu, 21 Oct 2010 21:43:10 +0200,
Magnus Nilsson <magnus.nilsson@alumni.chalmers.se> wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; ISO-8859-1 (7bit)>]
> Dear subscribers,
> 
> I haven't found much information about org-crypt and org-mobile-crypt.  Will
> these topics be expanded in the org-manual?
> 
> I would be delighted if anyone could teach me (informatively) how to succeed
> with the following two tasks:
> 
> 1. Encrypt a "password-table" I keep in an org-file when saved to disk,
> while text would be plain in the buffer. (Best if it can be "transparent"
> without passwords, but that is not a must.)
> 2. Encrypt files on the Dropbox server, in a "transparent" way, so that I do
> not need to use passwords to sync between org and Iphone (which I let Emacs
> do automatically once each day).
> 
> Thanks in advance,
> Magnus
> [1.2  <text/html; ISO-8859-1 (quoted-printable)>]
> 
> [2  <text/plain; us-ascii (7bit)>]
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2010-10-21 20:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-21 19:43 org-crypt and org-mobile-crypt; user info? Magnus Nilsson
2010-10-21 19:55 ` Chris Thompson
2010-10-21 20:05 ` Darlan Cavalcante Moreira [this message]
2010-10-21 20:11 ` Greg Troxel
2010-10-21 20:18 ` Łukasz Stelmach

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=4cc09cf5.0d11640a.13b1.6134@mx.google.com \
    --to=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=magnus.nilsson@alumni.chalmers.se \
    /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).