News for hackers. Stuff that matters.
Re:Jesus Christ, Use a Password Manager Already by bcl on Tuesday December 14, 2010 @07:53PM (#2006511)
text file + gpg + long passphrase

You can also setup vim to read/write it easily

  augroup GPG
    au!
    " decrypt before reading
    au BufReadPre *.gpg       set bin viminfo= noswapfile
    " decrypted; prepare for editing
    au BufReadPost *.gpg      %!gpg
    au BufReadPost *.gpg      set nobin

    " encrypt
    au BufWritePre *.gpg      set bin
    au BufWritePre *.gpg      %!gpg -ear email@wherever
    " encrypted; prepare for continuing to edit the file
    au BufWritePost *.gpg     silent undo | set nobin
  augroup END
Re:Jesus Christ, Use a Password Manager Already by philips on Tuesday December 14, 2010 @08:01PM (#2006539)
Re:Jesus Christ, Use a Password Manager Already by wonderzombie on Tuesday December 14, 2010 @11:14PM (#2007030)
This sounds pretty great. I have much respect for DIY solutions.

Is there any chance you or anyone else could point me to a howto or something similar?

Re:Jesus Christ, Use a Password Manager Already by bcl on Wednesday December 15, 2010 @12:33AM (#2007183)
This is so simple you don't need a howto.

1) Add the text block above to your ~/.vimrc file, change the email address to be one of your gpg keys.

2) Edit the file: vim somefile.gpg

3) Save the file

Re:Jesus Christ, Use a Password Manager Already by quadhome on Wednesday December 15, 2010 @02:04AM (#2007329)
Presumably you never :wq and mis-type your password?
Re:Jesus Christ, Use a Password Manager Already by bcl on Wednesday December 15, 2010 @10:09AM (#2008318)
You don't need a password to encrypt, only decrypt. If you fudge your password during decryption you can just :q
Re:Jesus Christ, Use a Password Manager Already by arnoooooo on Wednesday December 15, 2010 @05:51AM (#2007678)
Even simpler, Vim now includes blowfish encryption.