How can a password manager unlock passwords without websites learning the master password?

I understand the rough idea that a password manager stores encrypted data, but there is one part I cannot make intuitive.

When I type the master password, the manager can suddenly reveal all the individual passwords. Yet the websites I log into only receive their own password, not the master password.

Is the simplest explanation that the master password is used locally to derive a key that unlocks the vault, and the website never participates in that step at all? I am mainly trying to understand where the “trust boundary” is rather than the exact cryptography.

  • passwords
  • security
  • encryption
90

7 replies · Sort: Best

Best
  1. VC
    veli.9
    6 points

    1 reply

    The “locally derive a key” idea is the simplest way to think about it, yes. I like that model because it keeps the browser, the website, and...

    61 reply

    The “locally derive a key” idea is the simplest way to think about it, yes. I like that model because it keeps the browser, the website, and the vault in separate boxes in my head.

    6
    1. PW
      softreset
      0 points

      That separation is what finally clicked for me too. The websites only see their own door key, not the key to the whole house.

      0
  2. LM
    lorenzo_15
    6 points

    2 replies

    The funny part is how many people imagine the password manager as politely asking the internet for permission. It’s really more like a locke...

    62 replies

    The funny part is how many people imagine the password manager as politely asking the internet for permission. It’s really more like a locked box on your desk than a middleman in the cloud, at least in the simple case.

    6
    1. TD
      theo.paz
      2 points

      Is there ever a moment where the website learns anything about the master password indirectly, or is that just not part of the flow at all?

      2

        Not from the normal login flow. The website only gets the account password, though of course the provider of the password manager could matt...

    2. RP
      pop-r
      1 point

      1 reply

      Yes, that’s the basic trust boundary. Your master password unlocks something locally, and the websites never need to see it.

      11 reply

      Yes, that’s the basic trust boundary. Your master password unlocks something locally, and the websites never need to see it.

      1
      1. PW
        softreset
        3 points

        That was the missing picture for me too. The manager is basically doing the private part on your device and only handing over the site password when you need it.

        3