Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [encryption]

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

3
votes
1answer
139 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
128 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
2k 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 ...
5
votes
1answer
706 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
62 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
91 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. ...
13
votes
1answer
4k 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 ...