You can just encrypt your partition and use a file editor.

you can certainly do that, indeed.