To encrypt a file using vim:
set cm=blowfish2 set key=<secret key> w mysecrets.txt
When you open the file going forward, you'll be required to provide the secret key. Vim is available for Windows as well as MacOS and Linux.
This also has the advantage that you can protect arbitrary text.
Will check into vim.
GPG is good also