75

I know how to disable it, circumvent it, and that it saves stuff. However, when asked "what is it for, why is it there, and how does it work" I'm at a loss for words. What's more disturbing is there doesn't seem to be much of anything content-wise for those questions on the internet.

So once and for all. What is a Keyring, why is it on my computer, and how does it work?

1 Answer 1

67

A keyring is a "stored database" -- I'm using this term lightly -- of your login information stored on your local PC. It's wrapped by some magic voodoo encryption schema (PKCS#11 - this is used for secure storage on removable media) so it's going to be relatively secure from prying eyes.

It provides a common backend for (insert framework here, we will use gnome for an example) to CRUD (create, read, update, delete) your login information without "rolling your own solution". It keeps a consistent interface for programmers utilizing that particular framework. KDE provides its own keyring, Gnome has another implementation of it.

Evolution, Firefox, Net-man all utilize this interface. When you place your email server credentials into Evolution it asks you to store that information in the keyring. If you opt into it, it passes the data off to the keyring service and voilà, it's stored. Evolution only has to subsequently call the keyring service on startup to retrieve that information.

The big idea here is that if someone else were to access your PC and did not know the master password to your keyring, they could not access your stored login information. The same principle is put to use by lastpass.com's addon for your browser. (only it's distributed, meaning I can use it on several instances of browsers across PC's)

In summary, I offer this snippet from the gnome-keyring page located here

GNOME Keyring is a collection of components in GNOME that store secrets, passwords, keys, certificates and make them available to applications.

GNOME Keyring is integrated with the user's login, so that their secret storage can be unlocked when the user logins into their session.

GNOME Keyring is based around a standard called PKCS#11, which is a standard way for applications to manage certificates and keys on smart cards or secure storage.

3
  • Wait, I thought Firefox used the same code base that it uses on Windows and Mac, i.e. a password encryption system separate from the operating system? That's one of the reasons I don't use Google Chrome; first it had no master password and now it encrypts with the login password. I hope Firefox on Linux doesn't work the same way. Jan 28, 2016 at 17:36
  • 1
    @NobileUplift - based on the amount of time and drift from this answer and what Firefox is up to these days, I wouldn't doubt that the circumstances have changed (such as new cryptographic cyphers, and/or Firefox no longer using the keyring baked into your Operating System). :)
    – lazyPower
    May 10, 2016 at 14:08
  • 1
    Question is why is such an inconvenience? For instance why do I have to enter wireless password for hotspot every time I have to connect to it? Apr 24, 2018 at 9:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .