Keeping file for personal use with GPG

Posted by trixcit on Super User See other posts from Super User or by trixcit
Published on 2010-03-22T08:55:33Z Indexed on 2010/03/22 9:01 UTC
Read the original article Hit count: 492

Filed under:
|

I have a small text file with personal (sensitve) information. I'm currently encrypting/decrypting it with the Makefile, as described on http://www.madboa.com/geek/gpg-quickstart/ ; relevant section is

edit:
    @umask 0077;\
      $(GPG) --output $(FILEPLAIN) --decrypt $(FILECRYPT)
    @emacs $(FILEPLAIN)
    @umask 0077;\
      $(GPG) --encrypt --recipient $(GPGID) $(FILEPLAIN)
    @$(RM) $(FILEPLAIN)

view:
    @umask 0077; $(GPG) --decrypt $(FILECRYPT) | less

this works fine for viewing, but not for editting: I first have to enter my password, then edit the file, but to encrypt it afterwards I again have to enter my password twice (and it's a long one).

Is there a better way to do this?

© Super User or respective owner

Related posts about gpg

Related posts about command-line