On 2009-04-06 15:35 +0200, Samuel Bächler wrote:

> On Axels input I modified the script:
>
> #!/bin/sh
> gpg keys.gpg > /dev/null
> emacs keys
> rm keys.gpg
> gpg -r "user-ID" -e keys
> srm keys # *secure*rm keys
> srm keys~# *secure*rm keys~
>
> Drawback: During the time one works on the list `keys' it is readable
> at `/path/to/keys'.
If you cannot trust your sysadmin or fear that the machine might be
stolen, that is indeed a problem.  Besides, deleted files can be
recovered sometimes, e.g. with tools like ext3grep.

> Is there a way to pipe the output of `gpg keys.gpg' directly to emacs
> somehow like `gpg keys.gpg | emacs'?

Since Emacs cannot edit standard input, this will not work.  However,
there is a better solution: the easypg library allows transparent
editing of GPG-encrypted files. :-)  It is already part of Emacs 23
(which is not released yet), for Emacs 22 you can just install the
easypg package.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to