pythonpython-keyring

Can python-keyring dump all passwords?


Using python-keyring, can one dump all of the available passwords? I'm looking for an iterate_passwords() or similar, but it doesn't seem to exist.

According to this blog post, this is possible using gnomekeyring, but I can't find anything similar in python-keyring, which appears to be a much more prevalent library.


Solution

  • According to the python-keyring documentation, the keyring backends only specify get_, set_ and delete_ methods for single passwords. For example, see the Gnome backend.

    There is an open issue on this, which states:

    The current API does not provide a way to enumerate keys.