Use Vim Cryptographic Features to Encrypt Important Text Files

You can protect your important text files by using Vim cryptographic features.

Set cryptographic method to Blowfish:

:set cryptmethod=blowfish

Set encryption key:

:X

Save and get out:

:wq

But the drawback is:

$ grep 'Vim' encrypted.txt
Binary file encrypted.txt matches

References: