Zero-Knowledge Cryptography: Building Client-Side Security in OnePass
A technical breakdown of client-side PBKDF2 key derivation, AES-256-GCM authenticated encryption and RFC 6238 TOTP generation inside the browser without transmitting secrets.
- True zero-knowledge architecture mandates that raw master passwords and encryption keys never traverse the network in any form.
- OnePass derives a 256-bit AES master key locally using PBKDF2 with 600,000 SHA-256 iterations and a cryptographically random salt.
- All vault data is encrypted using AES-256-GCM with a unique 96-bit initialization vector per entry, preventing replay and bit-flipping attacks.
Most commercial password managers rely on cloud servers to store and synchronize encrypted credentials. While convenient, this architecture presents an attractive target for threat actors: a single database compromise or compromised cloud key can jeopardize millions of user vaults simultaneously.
In designing OnePass (part of ZenVQ Tools), our engineering objective was uncompromising: build an immortal, zero-telemetry password vault that functions completely client-side with mathematical proof of zero knowledge.
When a user enters their master password, the browser executes the Web Cryptography API to derive a symmetric 256-bit encryption key using PBKDF2 with 600,000 rounds of SHA-256. This high iteration count makes offline dictionary and brute-force GPU attacks computationally infeasible.
Each credential record is then encrypted using AES-256 in Galois/Counter Mode (GCM). GCM provides both confidentiality and cryptographic integrity verification via a 128-bit authentication tag. Every record receives a freshly generated 96-bit initialization vector (IV), ensuring identical plaintexts produce entirely distinct ciphertexts.
Furthermore, the integrated 2FA authenticator generates time-based one-time passwords (RFC 6238 TOTP) locally using HMAC-SHA1 and UNIX epoch calculation. Zero tokens, zero telemetry and zero server logs are ever created.