encrypt

VIM encrypt text file

Encrypt:
vim -x text.txt

Open:
vim text.txt

Change the password:
vim +X text.txt