Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 7 min read

A quantum computer won't need your master password

1Password's security white paper has a little story in it about an attacker called Oscar. Oscar's managed to copy everything on 1Password's servers, and it does him no good, because every vault is locked with your accoun

A quantum computer won't need your master password

1Password's security white paper has a little story in it about an attacker called Oscar. Oscar's managed to copy everything on 1Password's servers, and it does him no good, because every vault is locked with your account password plus a Secret Key that 1Password never sees. "Without the Secret Keys, it's useless to him," the paper says.

That's true today. Give Oscar a quantum computer, though, and he won't need your password or your Secret Key, and it isn't the AES that lets you down.

The vault key has a second lock

The usual answer to "are password managers quantum-safe?" is that vaults are encrypted with AES-256, and the best known quantum attack on that (Grover's algorithm) only cuts its effective key length from 256 bits to 128, which is still plenty. That part's right.

The catch is how the AES key gets to you. In 1Password, each vault has its own key, and the server keeps a copy of that key encrypted to your RSA-2048 public key. That's every vault, including the Personal one nobody else can see. Your RSA private key is stored too, encrypted with a key made from your password and Secret Key, so you open the vault in two steps: password and Secret Key open your private key, and your private key opens the vault key.

Against a normal attacker that RSA step doesn't matter, since the private key it needs is locked behind your password anyway. Shor's algorithm changes that. Run on a large enough quantum computer, it works out an RSA or elliptic-curve private key from the public key, and the server has to keep your public key, because that's what other people use to share with you. So Oscar takes the public key, works out the private key, and opens the vault key with it. The copy of the private key that your password protects is never needed.

Trying it on my own Vaultwarden

I wanted to see exactly when a vault picks up that second lock, so I used Vaultwarden, the self-hosted server for Bitwarden's apps, which stores the same keys as Bitwarden's own. I wrote a small Python client that does Bitwarden's real key handling, signed up a user called Alice, and gave her a note with a crypto seed phrase in it. Then I turned on Bitwarden's sharing and recovery features one at a time, and copied Vaultwarden's database after each one.

Nobody can factor RSA-2048 yet, so the test can't show Shor working. What it shows is what a stolen copy would need Shor for. My client kept the private keys it generated, and a second script gets one database copy and one of those private keys, standing in for what Shor would work out from the matching public key. The script never sees a password.

On Alice's first copy, her public key is there but nothing's encrypted to it, so her private key opens nothing. Then Alice gives her friend Bob emergency access, which is Bitwarden's "if I'm hit by a bus" feature. That stores Alice's whole user key in the database, encrypted to Bob's public key:

$ python3 open.py emergency.db bob.pem
matches [email protected]'s public key
opens Alice's key (emergency access)
   Seed phrase: abandon abandon ... art

That's Alice's personal vault, opened from Bob's public key without either of their passwords.

Whose public key opens Alice's notes in each database copy

Whose public key opens Alice's notes in each database copy (the data)

Each row is a copy of my Vaultwarden 1.37.5 database after Alice turned on one more feature. Safe means no public key in that copy leads to them. Bob's key reaches the shared notes too, because Alice's user key also opens her stored private key.

Joining an organisation only exposes what's shared there, because what gets encrypted to Alice's public key is the org's key, not hers. Account recovery is the one to watch. Bitwarden's single sign-on with trusted devices needs it switched on, so every account in a company that uses it is in the last row. Bitwarden's SDK still has only one public-key algorithm, RSA-2048.

Which password managers do it

I went through the white papers and the open-source code of the big ones to see which keys sit encrypted to a public key on the server.

Every vault, from the day you sign up:

  • 1Password encrypts every vault key to your RSA-2048 key, according to its own white paper, and in family and team accounts to the Recovery Group's key as well.
  • Apple Passwords and iCloud Keychain sync through Apple's CloudKit, where the key at the top of each keychain zone is encrypted to each of your devices' P-384 elliptic-curve keys. In Apple's latest published Security source (June 2026), the record holding that encrypted key holds the device's public key right next to it, so one copy of CloudKit has everything Shor would need. There's no post-quantum code in keychain syncing, and Apple's own quantum-secure list is about connections like iMessage, TLS and VPN. Those protect the keychain on its way to iCloud, but not once it's stored there. Advanced Data Protection doesn't change it either, since the keychain was already end-to-end encrypted this way without it.
  • Proton Pass encrypts each new vault's key to your Proton account key with OpenPGP, and that's usually an elliptic-curve key. Proton's post-quantum keys are opt-in, and a new key only covers data encrypted after you add it, so the vaults you already had stay on the old one.

Only once you share or set up recovery:

  • Bitwarden, as in the Vaultwarden test above.
  • LastPass encrypts each shared folder's key to every member's RSA key. Items you haven't shared are protected by your master password alone, unless your company has Super Admin password reset on, which keeps a copy of your vault key RSA-encrypted to the admins' keys.

Never:

  • KeePassXC, like the other KeePass apps, keeps everything in one file encrypted with a key from your password (and a key file, if you use one). There's no public key anywhere for Shor to work on.

Keeper and Dashlane both share with public keys too (elliptic curve and RSA), but their servers are closed and I couldn't tell from their docs what else is stored that way, so they're not in the lists.

Nobody's got the whole set yet, as far as I know

An attacker doesn't need the quantum computer yet, either. They can copy the data now and wait for one, which is usually called "harvest now, decrypt later". What they'd want is the encrypted vault keys and the public keys that go with them.

1Password's incident in late November got half of that. The attacker copied account records for some customers, including "public keys (which are public by design, this has no impact to user security)". That's fair this time, since the encrypted vault keys weren't taken, and a public key on its own opens nothing. A breach that also took the vault keys would be a different story, and a Secret Key wouldn't make any difference to it.

LastPass's 2022 breach is murkier. The attackers copied backups of customer vault data, and in LastPass's apps a shared folder's key arrives RSA-encrypted to each member's key. But LastPass later said its backend data isn't laid out the way the apps receive it, and described every encrypted field in those backups as AES with a key from your master password. So tbh I can't tell whether the RSA-encrypted folder keys were in there.

How worried to be

Not very, yet. Nobody's built a quantum computer anywhere near that size, and the best public estimate, Craig Gidney's from May 2025, is under a million qubits running for under a week to factor one RSA-2048 key. NIST's transition plan, finalised in October, has US government systems off RSA and elliptic curves altogether after 2035.

A password you change before then is fine, since the copy stolen today only holds the old one. If you're on 1Password or Apple Passwords there's no setting that helps, because it's down to them to re-encrypt those keys with something post-quantum. The trouble is the stuff that never changes: crypto seed phrases, 2FA recovery codes, the TOTP secret behind a 2FA code you set up once and never re-enrolled, a private SSH key. Those are worth keeping somewhere with no public key involved, like a KeePassXC file or a Bitwarden account with no emergency access and no account recovery. And when password managers do switch to post-quantum keys, that only protects copies taken afterwards. Anything already copied stays encrypted the old way.

NIST published ML-KEM in August 2024, and 1Password already uses it for its own web traffic. Its white paper still says no post-quantum algorithm "is yet suitably mature to be of use to us now".

More like this on blog.peng.ly

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.