If you want a basic solution, you can do this in vim:
Code:
:set cryptmethod=blowfish
:X
:w ~/passwords
Note the default cryptmethod is
*not* secure, you *need* to set it to blowfish!
Don't forget to
backup (no matter how you store your passwords), you will *not* be happy if you lose it.