Vim has simple built in encryption. If you have a text file you want to encrypt you can run the commands:
:set cryptmethod=blowfish2 :X
Vim will prompt you for a password, and then the next time you save the file it will be encrypted automatically. When you open the file it will prompt you for the password. If you enter the wrong password you'll see a bunch of gibberish.