jaraco / keyring

MIT License
1.27k stars 161 forks source link

NoKeyringError after install in Pydroid 3 #454

Open ustauss opened 4 years ago

ustauss commented 4 years ago

After "pip install keyring" with no errors calls to keyring.set_password or keyring.set_password raise a NoKeyringError exception. So it seems there is no backend installed. Should this not have happened when installing keyring or at least been flagged? Which backend should be installed on Android (10) using Pydroid 3 (Python 3.8)? How?

jaraco commented 4 years ago

Keyring has no built-in support for Android, so the error you've received is (unfortunately) expected.

Keyring does have support for Linux desktop environments through KWallet and Secretstorage (see the readme for references). It's possible that you merely need to configure your Android environment to supply one of these interfaces and keyring will just work. I suspect, however, that you'll need to build something more sophisticated that builds on whatever secure storage mechanisms that Android exposes, such as keystore.

If you're feeling ambitious, you could write your own backend for keystore and publish it as a third-party plugin. If it's popular and stable enough, I'd even be interested in including that in the core library.