Engineering · 28 September 2026

Why We Added Passphrase-Based Keychains

In MyField: Building Identity and Sync for Local-First Apps, we described how MyField builds identity around keys held by users, with separate mechanisms for authentication, data encryption, and app authorization.

The starting point is that users should own their identity and data, with control grounded in their own keys.

This raises a practical question: if a device is lost or replaced, or an existing way of accessing those keys becomes unavailable, how can the user continue to control the same identity and data?

That question led us to passphrase-based Keychains.

1. How can Keychain control outlive a device?

Passkeys base control on credentials held by devices. They offer strong protection and convenient authentication, but require access to those credentials, directly or through a sync provider.

Passphrases base control on a secret users can remember. They allow access from another device without the original credential, but can be forgotten or guessed.

MyField supports both so users can choose what suits them or combine the two. Choosing how to hold their keys is part of owning their identity.

The challenge is to let users manage their own Keychain while MyField knows neither their email nor their passphrase in plaintext.

2. How can a memorable passphrase protect Keychain keys?

A passphrase a person can remember usually has less entropy than a randomly generated cryptographic key. It needs a derivation process that makes repeated guesses expensive.

MyField combines an email with a passphrase of at least 12 characters and derives key material locally using Argon2id. Creation also applies format and weak-passphrase checks.

Argon2id is a variant of Argon2, the winner of the Password Hashing Competition. Its computation and memory requirements increase the cost of large-scale guessing. MyField’s current derivation uses 64 MiB of memory, three passes, and a 256-bit output.

The email is normalized and used to construct a salt. From the Argon2id output, HKDF derives separate encryption keys and a lookup identifier for locating recovery material.

These outputs have separate purposes. Sending the lookup identifier to a server does not give that server the encryption keys.

A 256-bit output describes the length of the derived material. It does not give a weak passphrase 256 bits of guessing resistance. The passphrase still needs to be strong, and Argon2id raises the cost of testing each guess.

Reference: Argon2 — Official Reference Implementation.

3. How can a passphrase protect keys without deriving identity from it?

A natural approach is to derive a key pair from the passphrase and add it as an Owner key. But this binds the key to the passphrase and lets attackers check guesses against the public key.

MyField takes a different approach: it generates keys randomly on the device and uses passphrase-derived keys to protect them. These randomly generated keys serve two different purposes:

  • An asymmetric Owner key pair proves identity control and signs authorized changes.
  • A symmetric data root key, rootKey, protects sensitive Keychain material, including material used to recover access to application data.

Adding passphrase-based access to an existing Keychain creates a new Owner key pair and protects the existing root key, without re-encrypting app data.

This avoids using the public key as a passphrase verifier. Encrypted recovery material can still be used to test guesses, so resistance to guessing depends on the passphrase and derivation cost.

The passphrase protects and unlocks keys. The keys perform authentication and encryption.

The identity’s continuity is maintained through its Owner keys and proof chain. It does not depend on keeping one particular passphrase forever. This design lets users replace and manage Owner keys without rebuilding their Keychain.

4. Can users control their keys with email and a passphrase without revealing their email to the platform?

An email address is personally identifiable information. It also represents an account assigned and managed by an email provider. MyField aims to provide identity services without needing to know that address, leaving users free to decide whether to disclose it to the platform.

For this reason, the passphrase-based mechanism uses email and passphrase locally with Argon2id to derive key material, without sending either to the platform in plaintext.

The device derives a lookup identifier, passphraseId, that lets the server locate the encrypted recovery envelope. The email label stored in the Keychain is encrypted as well.

Users can access their Keychain with email and a passphrase without disclosing either to MyField.

This also leaves disclosure as a separate decision. In the future, a notification service could ask a user to provide an email explicitly, or a user could choose email verification as part of two-step verification. Either would be a separate, optional use of the address. The role of email verification in access and recovery would need separate design.

5. How can a server help recover a Keychain without holding its secrets?

The server stores encrypted recovery material. A new device uses the locally derived lookup identifier to retrieve the encrypted Owner private key, then unlocks it locally with the derived encryption key. It then signs a challenge to prove control before retrieving the Keychain and unlocking its data root key locally.

The server provides encrypted recovery records; the user’s device unlocks the keys and proves control.

6. How does adding passphrase-based access affect Keychain’s ownership model?

An interesting finding during development was that adding passphrase-based access required no fundamental change to Keychain’s ownership model.

MyField Keychain builds on MFID, where ownership is established through active Owner keys and a verifiable proof chain. Both Passkeys and passphrases let users prove control of an Owner private key. Their protection and proof mechanisms differ, but they fit the same ownership model.

This works because key protection is separate from ownership verification.

Both methods have full Owner authority in MyField Keychain. Users can add, remove, and replace Owner keys of either kind according to their needs, while preserving the same identity.

From another access method to an architecture that can evolve

We started with a practical concern: users should be able to retain control of their identity and data when a device is lost or replaced. Adding another access method demonstrated the value of separation in MyField’s design.

Four responsibilities are designed separately so each can evolve independently:

  • Key protection and recovery: how users store and regain access to keys.
  • Identity authentication: how users prove control of an identity.
  • Data encryption: how data and the keys needed to decrypt it are protected.
  • App authorization: how users decide which applications receive which capabilities.

This separation lets key protection, identity, and encryption evolve independently while apps retain the same authorization model. Users gain more ways to hold their keys and can choose or combine them according to their needs.

MyField’s goal is to let users sustain control of their identity and data, while allowing the mechanisms that support that control to evolve independently.