Questions tagged [encryption]

Vim is able to write files encrypted, and read them back. The encrypted text cannot be read without the right key.

Filter by
Sorted by
Tagged with
0
votes
1answer
37 views

How do I determine encryption method via command line?

I have files which are encrypted by vim. From the command line, how can I determine which encryption method was used on a given file?
0
votes
0answers
20 views

How to encrypt the visual selection?

For e.g. Vim allows g? to run ROT13 on a visual selection. What are the inbuilt (preferably strong like blowfish2) encryption methods available for encrypting only a part of file.
0
votes
1answer
23 views

Is there a configuration in VIM that can prevent VIM from opening an encrypted file?

Is it possible to configure VIM so that when an attempt is made to edit a file encrypted by VIM, or to encrypt a file, VIM would warn or refuse such action?
1
vote
1answer
165 views

Cannot use gnupg: Error 117

The plugin gnupg (https://github.com/jamessan/vim-gnupg) worked fine until recently where I get the error: # vim myfile.asc Error detected while processing BufReadCmd Autocommands for "*.{gpg,asc,pgp}...
4
votes
1answer
208 views

How to encrypt the .viminfo file and still get Vim to read it?

I love using Vim yet have a lot of very sensitive, encrypted files to edit, sometimes on an unencrypted drive, and can't have any residual information from these files forensically accessible to other ...
3
votes
1answer
20 views

Support of the -x option

I have two Ubuntu Linux 18.04.3 LTS systems, both have vim identify itself as "VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 06 2019 17:31:41)" One of the systems supports the vim -x option, the ...
3
votes
1answer
314 views

Lost an important doc with "vi -x"

Yesterday I decided to encrypt my diary since it has some info that is private. My diary was a plain text doc called diary. There was no file called d so I did the following: $ vi -x d Enter ...
0
votes
1answer
264 views

Open with Neovim files that were encrypted with Vim

It seems I cannot open with Neovim the files I have encrypted with Vim. Neovim just open the files without decrypting them, displaying all those gibberish character sequence. Is it considered normal ?...
9
votes
1answer
4k views

Why does vim complain about weak crypto when using blowfish2?

I opened up a document from 2015 I saved using the built in crypto in vim (:X). That was saves using blowfish at the time. The message I got now (2017) was this: Warning: Using a weak encryption ...
6
votes
1answer
1k views

GnuPG encrypted file editing with Neovim

Is there a way to open a GnuPG encrypted file with neovim so that one can read/edit it and on write the file is re-encrypted? This is possible via vim-gnupg in classic vim but has not been ported to ...
0
votes
1answer
94 views

Why is an autocmd using cryptmethod a better way to prevent Vim from recording events than a separate vimrc?

There is a comment by Carpetsmoker which suggests a way to prevent Vim from recording events for certain filetypes: I would not recommend using a separate vimrc file, for the simple reason that it'...
6
votes
2answers
173 views

How do I detect I've entered a wrong password when using cryptmethod (and make Vim ask for it again)?

If I encrypt a file with :set cryptmethod=blowfish or :set cryptmethod=blowfish2, and open the file in Vim, it asks for my password on startup. I type in the correct password and continue happily. ...
15
votes
1answer
6k views

How secure is encrypting files with blowfish?

I know using :set cryptmethod=zip is not secure, but how secure is using :set cryptmethod=blowfish? On wikipedia I read that the blowfish cipher, as such, should be secure, but this says nothing ...