Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I read man vim, :h -x and :h encryption none of this actually says what algorithm it's encrypted with.

share|improve this question
up vote 7 down vote accepted

:h 'cryptmethod' says that PkZip and Blowfish (new in Vim 7.3) are possible encryption methods. A look around FEAT_CRYPT in vim/src/misc2.c confirms it.

The weak encryption method is documented in PKWARE's zip file format documentation, and the new strong encryption is documented on Bruce Schneier's Blowfish page.

share|improve this answer

I know that they added support for blowfish encryption in 7.3. Other than that it's zip.

If you're using 7.3 go:

:set cryptmethod?

to see what method you're using.

share|improve this answer
apparently :set cryptmethod isn't an option before 7.3 – xenoterracide Oct 27 '10 at 9:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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