I would like to have an encrypted file in my home directory that I can edit 
often without having it ever save any cleartext to disk.

I could do the following:

1) Decrypt the file with gpg.
2) Edit the decrypted file with vim.
3) Encrypt the file with gpg.

Problems with this include:

1) It's inconvenient to do this each time (having a script would be
nice).

2) If you decrypt the file it will write the cleartext to disk. This
could be recovered easily by someone with access to the filesystem.

3) If you edit the file with an editor such as vim or emacs, it will
save a temporary ".filename.swp" file that could be read like #2.

Is it possible to do something like (note: this does not work):

gpg --decrypt NOTES.gpg | vim - -n | gpg --output NOTES.gpg --encrypt --recipient 
[EMAIL PROTECTED]

I hear there are vim filters that might be able to do something like
this, but I can't find much info. Any ideas?

----- update -----

I just found a vim script that lets me read a .gpg file (it doesn't
write it out right though). Looking at it though it seems to have
problems 2 and 3. 

http://lists.gnupg.org/pipermail/gnupg-users/2002-May/013355.html

------------------

-Evan

-- 
/********************************************************************\
       Evan McNabb: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
                     http://evan.mcnabbs.org
             System Administrator, CS Department, BYU
 GnuPG Fingerprint: 53B5 EDCA 5543 A27A E0E1 2B2F 6776 8F9C 6A35 6EA5
\********************************************************************/

Attachment: pgp00000.pgp
Description: PGP signature

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to