Ubuntu/Gnome has gnome-keyring as secure password safe.
(KDE provides with kwallet an an similar service.)
This approaches works for all applications compatible to the gnome (or kde) environment.
You can also find applications like subversion, which are capable to work with both services.
So normally you have all needed functionality already on board.
The problem is if you use some "foreign" software like firefox or chromium.
For some of them you can find some workarounds or configuration tweaks:
For displaying/export all your passwords in your keyring you can use
the following script:
import gtk # sets app name
for keyring in gnomekeyring.list_keyring_names_sync():
for id in gnomekeyring.list_item_ids_sync(keyring):
item = gnomekeyring.item_get_info_sync(keyring, id)
print '[%s] %s = %s' % (
keyring, item.get_display_name(), item.get_secret())
if len(gnomekeyring.list_item_ids_sync(keyring)) == 0:
print '[%s] --empty--' % keyring
if __name__ == '__main__':
credits: This script is from Michael Schurter
For other applications my advice is to use an gpg encrypted textfile as your "brain-extension".
This can easily shared between different computers.
If you want to synchronize the content, use a directory with one file per password to avoid synchronization collisions.