Vim encryption

Vim has some simple built in encryption. If you have a text file you want to encrypt you can run the command:


Vim will prompt you for a password (twice). The next time you save the file it will encrypt the file before saving it. 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.

Leave A Reply
All content licensed under the Creative Commons License