4 ms·
I'm using Emacs for something similar. This works because Emacs can open .gpg files. It will decrypt them on opening (asking for your password) and encrypt on
by vog 11y ago
I'm using Emacs for something similar.
This works because Emacs can open .gpg files. It will decrypt them on opening (asking for your password) and encrypt on saving. This is very powerful in combination with Orgmode (.org), or any other module that provides auto-folding.
So I open my .org.gpg file and everything is folded. Then I search for what I need, and only that part (containing some secrets) is unfolded.
Of course, this is no substitute for a proper password manager, but proved to be useful a lot more often than I initially thought.
- mct 11y agoI've been doing the same with vim for years, using this vim script: https://github.com/mct/dotfiles-public/blob/master/.vim/plugin/gpg.vim https://github.com/mct/dotfiles-public/blob/master/.vim/plug...
- frankzinger 11y agoI'm not sure this is a good solution for this use case (password management). The obvious way of getting the password out of the Emacs buffer is copy and paste, which leaves the password on the clipboard where it is very easy to find. Manually removing it (by copying something else) can't be relied upon. (If you use Klipper you have an even bigger problem.) I know all bets are off with any kind of password manager if the host is compromised, but password managers and browser plugins presumably at least try to scrub passwords from memory, which will save you if you forget to lock your screen or your window manager has a screen lock bypass bug (very common). The Emacs solution will protect you if you don't use full-disk encryption and your disk falls into the wrong hands, but that applies (or should apply) to all password managers. What am I missing? Edit: The same applies to the solution in the article.