What a Zero-Knowledge Vault does for you
Your Vault is an encrypted safe inside LeapTerm that protects reusable secrets—SSH private keys, server passwords, passphrases, and API tokens—using client-side Zero-Knowledge cryptography.

Keep three distinct layers clear:
- Saving a server address: Host metadata (display label, address, username) does not store your SSH key or password unless you attach a saved secret.
- Signing in to your LeapTerm account: Account login authenticates you to cloud sync and relay routing services, but does not unlock your Vault and grants cloud servers zero decryption ability.
- Unlocking your Vault: Derives your decryption keys strictly on your device (from your Master Passphrase, 256-bit Recovery Kit / Account Secret, or enrolled hardware factors) so LeapTerm can read credentials locally.
How two-tier DEK/KEK client-side encryption works
LeapTerm uses a two-tier key hierarchy so secrets stay encrypted end-to-end while supporting multiple convenient unlock methods (Master Passphrase, Recovery Code, Biometrics, or synced WebAuthn Passkey PRF) without sharing plaintext secrets with the cloud:
- Data Encryption Key (DEK): A cryptographically random 256-bit symmetric key generated on your device encrypts your Vault items and snapshots client-side using authenticated encryption (
XChaCha20-Poly1305for cross-device LeapTerm Cloud sync objects, orAES-256-GCMwith domain-separated AADleapterm-local-vault-sync-v2for encrypted local/browser sync packages). - Key Encryption Keys (KEKs): Your DEK is wrapped separately inside independent KEK slots, each authenticating its slot metadata with AAD:
- Master Passphrase / Recovery Slot: Derived client-side via
Argon2id(mixed with your client-only 256-bit Account Secret / Recovery Kit for LeapTerm Cloud sync) orPBKDF2-HMAC-SHA256+AES-256-GCM(leapterm-vault-v2:password-slot). - Hardware / Biometric / WebAuthn Passkey PRF Slots: When enrolled, your hardware factor or WebAuthn PRF output (
custody_mode: "hardware_bound") derives an independent local/synced KEK wrapping the same 256-bit DEK (leapterm-vault-v2:passkey-slot:...). On web browsers, hardware-bound keys wrap non-extractable WebCryptoCryptoKeyhandles persisted in IndexedDB. Raw PRF outputs, passphrases, and unwrapped DEKs never leave your device's unlocked memory.
- Master Passphrase / Recovery Slot: Derived client-side via
- Verifiable Cloud Ciphertext Sync (
vault): When using LeapTerm Cloud, your desktop, mobile, or WebAssembly browser engine signs commit manifests (Ed25519) chained by predecessor hashes and monotonic sequence numbers (leapterm:v1:commit). LeapTerm's cloud API verifies commit signatures and device membership rules, then stores strictly opaque ciphertext blobs and signed commit envelopes—rejecting plaintext credential fields by schema and content guards. Disjoint edits made offline on separate devices automatically rebase and merge onto the latest verified head; only same-item concurrent edits require manual resolution.
Why a breached cloud server cannot decrypt your Vault
Because every KDF, key-wrapping step, and AEAD encryption operation happens on your client device:
- Database compromise = ciphertext only: An attacker with full read access to LeapTerm's cloud databases (D1/R2 object storage) obtains only encrypted blobs (
ciphertext, random salts/nonces, wrapped DEK slots, and public verification keys). Without your Master Passphrase (+ Account Secret), Recovery Kit, or hardware factor, brute-forcing a 256-bit DEK or salted Argon2id/PBKDF2 KEK is computationally infeasible. - No server-side key escrow or reset backdoor: Resetting your account email/password never unlocks your Vault, and LeapTerm staff or compromised backend workers cannot decrypt synced secrets on your behalf.
Honest boundary — Native Apps vs. Hosted Web Browser Gateway: In native apps (macOS, Windows, Linux, iOS, Android), your unlocked DEK and SSH keys never leave your device—the SSH handshake completes locally and only encrypted SSH ciphertext traverses the relay. By contrast, when you actively launch a session through a Hosted Web Browser Gateway, your already-unlocked browser client sends that session's chosen login credential over TLS into ephemeral Gateway process RAM so the Gateway can open the SSH/VNC/RDP session on the server side while active. Do not run sensitive sessions through an untrusted third-party Hosted Web Gateway; use the native apps instead.
Set up and unlock your vault
- Open Vault (or click the Vault tab in the sidebar).
- Choose your Sync Destination directly inside the unified Backups & Sync tab: Device Only, LeapTerm Cloud, or Personal Cloud Drive.
- Pick a strong, unique Master Passphrase (or enroll device security / passkey) and save your Recovery kit offline outside this device.
- Unlock your unified Vault once before connecting, and click Lock whenever you step away or use a shared machine.

On desktop and mobile apps, local credential storage relies on your operating system's secure keychain; in web browsers (cloud.leapterm.com), the compiled WebAssembly Vault engine stores encrypted records and non-extractable WebCrypto keys inside IndexedDB. See cloud and offline data to learn how encrypted syncing works.
Quick device unlock versus full recovery
- Co-equal local hardware keys & forgot-password recovery: When your unified Vault is protected by a Master Passphrase alongside enrolled local hardware keys (Passkey, Biometrics, Passcode, or a local hardware key), any of those local keys can unlock the Vault on that device and let you reset a forgotten passphrase without typing the old one. Synced passkeys can also unlock synced backups when your passkey provider syncs that passkey across your devices. Your Vault becomes permanently unrecoverable only if both your Master Passphrase is forgotten and all enrolled hardware keys and recovery kits are lost.
- Device-bound biometrics and passcodes: A local fingerprint or passcode stays scoped to that hardware device and does not replace a Recovery kit or synced passkey when moving to a brand-new machine.
- Unlocking LeapTerm Cloud on a new device: Enrolling a new device or unlocking with a passphrase on a fresh device requires pairing from an existing device or entering your Vault passphrase and client-held Account Secret.
- Account sign-in passkeys are separate: Signing in to your LeapTerm account with a passkey is independent from Unlock with passkey for your Vault—each is enrolled separately.
Continue with privacy and trust boundaries, how relay connections work, backup and recovery, and cloud and offline data.