Python/keyring

From Omnia
Revision as of 21:55, 30 September 2025 by Kenneth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
https://github.com/jaraco/keyring
# pip install secretstorage dbus-python
pip install keyring
>>> import keyring
>>> keyring.set_password("system", "username", "password")
>>> keyring.get_password("system", "username")
'password'


$ keyring --help
$ keyring set system username
Password for 'username' in 'system':
$ keyring get system username
password