Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Cryptography

The vault's cryptography lives in one Rust crate, qubit-vault, used by the Mac app and, compiled to WebAssembly, by the web dashboard.
JobAlgorithm
Password stretchingArgon2id (RFC 9106), random per-account salt, stored cost parameters. Defaults: 64 MiB, 3 passes.
Key splitHKDF-SHA-256 into an authentication key and an encryption key
Item encryptionXChaCha20-Poly1305 under per-vault 256-bit keys
Key exchangeX25519 and ML-KEM-768 (FIPS 203) together, combined with SHA3-256 in the style of X-Wing
SignaturesEd25519 and ML-DSA-65 (FIPS 204) together; both must verify
FingerprintsQBT-XXXX-XXXX-XXXX-XXXX-XXXX, over all four public keys
Recovery keyQBT1-…, base32 of a random key plus a checksum, so typos are caught

Items are bound to where they belong

Each encrypted item is bound to its ID, its vault, its kind and the vault key's generation. The server can't move an item to another vault, change its kind or replay an old version without the app noticing.

Hybrid post-quantum

  • Key exchange. A vault key is wrapped with X25519 and ML-KEM-768 at once. An attacker must break both to unwrap it. That covers today's attackers, and someone who records traffic now and has a quantum computer later ("harvest now, decrypt later").
  • Signatures. Key grants are signed with Ed25519 and ML-DSA-65. A forgery needs both broken.
  • Symmetric cryptography (XChaCha20-Poly1305 with 256-bit keys, SHA-2, SHA-3, Argon2id) is already considered safe against quantum computers at these sizes.
Hybrid doesn't mean everything is post-quantum:
  • SSH certificates are plain Ed25519, because OpenSSH has no post-quantum certificate signatures. Your SSH connections use whatever key exchange OpenSSH negotiates; recent versions default to the hybrid mlkem768x25519-sha256.
  • TLS to the server is whatever the server's proxy negotiates.
  • The ML-KEM and ML-DSA code comes from the RustCrypto project. It follows the final FIPS standards and is tested against them, but hasn't had an independent audit yet. The hybrid design is there so that a flaw in either half alone exposes nothing.

Sessions and two-factor

  • Sessions are random bearer tokens. The server stores only their SHA-256 hashes.
  • Two-factor codes are TOTP, checked with a ±30-second window, and each code works once.
  • Resetting your password with the recovery key signs out every session.