0

I'd like to start using "vim -X" to store encrypted text files. This is a nice introduction on how to do it:

http://www.techrepublic.com/blog/security/vim-offers-strong-file-encryption-with-blowfish/4870

However, how do I tell for sure what encryption algorithm is being used, and how do a change it to blowfish if it's the older, less secure algorithm?

1

You can check the current encryption method by checking the cryptmethod variable, like so:

:set cryptmethod
  cryptmethod=zip

Vim only supports zip and blowfish at the moment, where Blowfish is the stronger method.

3
  • Thanks, that does it. Word of warning, the cryptmethod variable is available in vim7.3 but not 7.2. That's why a couldn't find it. I was on an Ubuntu10.04LTS machine which uses 7.2. – Peter Groves Jul 27 '12 at 15:08
  • p.s. I'd upvote you but I don't have the minimum karma to upvote. – Peter Groves Jul 27 '12 at 15:09
  • @PeterGroves You can however accept the answer, with the tick mark next to it. – mgorven Jul 27 '12 at 16:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.