Secure storing of passwords and other secrets
This module provides a way for securely storing passwords and other secrets.
It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) and KSecretsService.
The main classes provided are secretstorage.Item, representing a secret item (that has a label, a secret and some attributes) and secretstorage.Collection, a place items are stored in.
SecretStorage supports most of the functions provided by Secret Service, including creating and deleting items and collections, editing items, locking and unlocking collections (asynchronous unlocking is also supported).
The documentation can be found on pythonhosted.org.
Building the module
SecretStorage supports all versions of Python since 2.6. Here we assume that your Python version is 3.x.
SecretStorage requires these packages to work:
- dbus-python (available in Debian-based distributions in python3-dbus package);
- PyCrypto (available in Debian-based distributions in python3-crypto package).
To build SecretStorage, use this command:
python3 setup.py build
If you have Sphinx installed, you can also build the documentation:
python3 setup.py build_sphinx
Get the code
SecretStorage is available under BSD license. The source code can be found on GitHub.