3 ms·
Take this one step further with transparent editing of encrypted files in vim: http://vim.wikia.com/wiki/Edit_gpg_encrypted_files http://vim.wikia.com/wiki/Edi
by dredmorbius 14y ago
Take this one step further with transparent editing of encrypted files in vim:
http://vim.wikia.com/wiki/Edit_gpg_encrypted_files http://vim.wikia.com/wiki/Edit_gpg_encrypted_files
If you structure the file, say, passswords, appropriately, or even very loosely (one record per line), you can write a bash script or function to query the file. More useful if you've got a pgp-agent running. Say:
qpass () { gpg -d ~/passwords.asc | grep $1; }
... and when you want to know your HN password, you query it with 'qpass ycomb'
- era86 14y agothis is pretty sweet! actually takes all that command line stuff out of the way, if you're a vim user that is... thanks!
- repsilat 14y agoAlternatively you can use something like EncFS. http://www.arg0.net/encfsintro http://www.arg0.net/encfsintro To me it fits better with "The UNIX Way" - works with all the other tools and so on. Doing it in vim is probably more portable, though :/
- stevenrace 14y agoAlternately, for my emac brethren: http://emacs-fu.blogspot.com/2011/02/keeping-your-secrets-secret.html http://emacs-fu.blogspot.com/2011/02/keeping-your-secrets-se...