Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

closed as off topic by Shane Madden, voretaq7 Nov 11 '12 at 3:23

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
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.