cpm (Console Password Manager) is a small console
tool to manage passwords and other sensitive data and store them in a public-key encrypted file. It also allows you to configure the whole hierarchy yourself, so it's easily adoptable for many requirements.
The encryption is handled through GnuPG, and the data
inside is stored as XML.