Wednesday, July 31, 2013

Re: feature request - encrypt vim 'save' files

On Wednesday, July 31, 2013 11:10:14 AM UTC-5, shawn wilson wrote:
> Some things that vim keeps can leak information. I'm curious if there
>
> would be any issues with encrypting backupdir, directory, undodir, and
>
> viminfo files?
>
>

The only thing in that list that Vim does not encrypt, if you decide to write an encrypted file, is the viminfo file.

See :help encryption, and also http://vim.wikia.com/wiki/Encryption

>
> Basically, I'm thinking that either vim could either use a per file
>
> pass based on a keyring or a global password. If this feature were on
>
> and the password / decryption failed, a non-encrypted file could be
>
> used (encrypted filetypes would be defined with an extension so having
>
> one file with an encrypted and plaintext swpfile for instance, would
>
> be sane). That or the file just isn't written/used if the feature is
>
> on and no/wrong password is present.
>

Oh, I see. You want to write UNENCRYPTED files, but have Vim's "helper" files related to your editing be encrypted.

I could see the utility of this. But then Vim would need to ask for a password every time it started up and read the .viminfo file.

I think it might be easier to set up an encrypted home directory, and set your backupdir, directory, and undodir to reside within. Then Vim doesn't need to worry about it at all.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment