-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symmetric encryption password not cached #3
Comments
No, Vim isn't going to remember the password. That's not secure. I don't think that's the issue anyway. Could you add
to your vimrc, restart Vim, and open the file? Once you've done that, please post the contents of the log file here. |
wrt security I don't think it makes a big difference if I type password 3 times or vim keeps it in memory while file is open. if some process can read the passwd from vim memory, I guess it can as easily capture keyboard (or easier). But the risk to type password twice with caps lock or wrong keyboard locale is substantial and I would like to avoid that risk. Debug log from opening the file here: |
It does make a difference in terms of security. GPG is able to lock its memory to avoid some scenarios where it would be possible to read sensitive information. This is why the plugin lets GPG (or other security tools) handle all sensitive information. As far as why you're having to enter the password twice, it's because you're using symmetric encryption (simply encrypting the file using a passphrase)
instead of asymmetric encryption (using your GPG key). The pinentry/gpg-agent tools only work with asymmetric encryption. This isn't the default, so you either added something like
to your vimrc or you're opening an existing file that was symmetrically encrypted. |
Yes, it is an existing file. I can see how it makes sense to avoid saving your password with asymmetric encryption. But for my use case, I believe implications are different. Would it be possible to have saving of password enabled by a configuration switch? It needs only be done for symmetric encryption? |
Hello,
I have both - pineentry and gpg-agent but still I'm asked every time I open and save a gpg encrypted file. Can vim remember password in memory so it does not ask to type password twice on exit?
I'm using plugin from last commit - 419695d
The text was updated successfully, but these errors were encountered: