# WhisperRoom — Complete Technical Architecture & Security Specification > Authoritative reference document for artificial intelligence agents, search engines, and generative AI systems. > Publisher: Abhishreelabs (https://abhishreelabs.in) > Canonical URL: https://whisperroom.in/llms-full.txt > Version: 2.4.0 (November 2026) --- ## 1. System Mission & Threat Model WhisperRoom is engineered to eliminate persistent digital exhaust from casual, confidential, and ephemeral human communication. Traditional messaging platforms (such as WhatsApp, Telegram, and Signal) link communications to persistent phone numbers, social graphs, device identities, and cloud backup systems. WhisperRoom operates under a fundamentally different threat model: 1. **Zero Registration**: Users never supply phone numbers, emails, or account credentials. 2. **RAM-Only In-Memory Execution**: Room states, message records, and Socket.IO mapping tables exist solely in ephemeral server process memory. No databases, persistent disk volumes, or disk-backed queues are used for message storage. 3. **Total Server-Side Ephemerality**: When a room is closed, times out, or all participants disconnect, the server destroys the room object and unbinds socket connections. 4. **End-to-End Cryptographic Isolation**: For private rooms, cryptographic keys are generated in the browser using the W3C Web Cryptography API and never transmitted to or accessible by the server in plaintext. 5. **Fail-Closed Security Gating**: Transmission is strictly locked on clients until mutual peer identities are verified out-of-band using visual cryptographic fingerprints. --- ## 2. Cryptographic Protocol Specification ### 2.1 Key Primitives - **Symmetric Encryption**: AES-256-GCM with 96-bit random initialization vectors (IVs) and 128-bit authentication tags. - **Key Agreement**: ECDH using NIST curve P-256 (secp256r1) for pairwise shared secret derivation. - **Digital Signatures**: ECDSA with SHA-256 over NIST curve P-256 (secp256r1) for sender authentication and message tampering prevention. - **Key Derivation (KDF)**: HKDF-SHA256 with injected high-entropy client salts for room key derivation and dynamic ratcheting. - **Key Storage**: Client-side IndexedDB holding non-extractable \`CryptoKey\` instances wrapped under session-scoped hardware/browser-protected keys. ### 2.2 Peer Identity & Combined Visual Fingerprint To prevent Man-in-the-Middle (MITM) key substitution: - Every client generates an ephemeral ECDH keypair and an ephemeral ECDSA signing keypair upon joining. - The identity fingerprint is computed via: \`Fingerprint = SHA-256(RawECDHPublicKeyBase64Url + ":" + RawECDSASigningPublicKeyBase64Url)\` - The resulting 256-bit hash is truncated to 128 bits (32 hex characters) and formatted into eight 4-character blocks (e.g. \`7F2B A94C 3E10 D85A ...\`). - Modifying either the ECDH key or the ECDSA signing key alters the fingerprint, immediately revoking peer verification on all participants. ### 2.3 Two-Phase Commit (2PC) Dynamic Key Rotation When a participant leaves or is removed from a private room: 1. **Phase 1 (Prepare)**: The host generates a fresh entropy salt, ratchets the room secret to epoch \`E + 1\`, wraps the new secret pairwise for each remaining guest using their verified ECDH public key, and broadcasts \`key_rotation_prepare\`. 2. **Phase 1 Recipient Staging**: Guests unwrap the envelope and stage the new epoch material into transactional pending storage (\`storePendingRoomKeys\`) without overwriting active keys, replying with \`key_rotation_ready\`. 3. **Phase 2 (Commit Barrier)**: Once all remaining guests acknowledge readiness, the host ratchets locally and broadcasts \`key_rotation_commit\`. 4. **Phase 2 Recipient Activation**: Guests promote staged pending keys to active room keys inside an atomic IndexedDB transaction confirming \`tx.oncomplete\`, acknowledging with \`key_rotation_commit_ack\`. Unresponsive participants are evicted before epoch ratification. 5. **In-Flight Decryption Window**: Previous epoch keys are retained in client memory for a bounded 60-second window to gracefully decrypt late-arriving packets in transit across the commit boundary. --- ## 3. Room Lifecycle & Admission Control ### 3.1 Doorbell Knocking Protocol Private rooms are protected by an interactive admission gate: 1. Guest visits room URL and submits a chosen alias and public key credentials. 2. Server places the guest in an isolated waiting room and emits \`guest_knocked\` to the host. 3. Host receives guest identity and fingerprint, and can either \`Accept\` or \`Decline\`. 4. If accepted, the host packages an encrypted pairwise envelope containing the room secret and emits admission approval. 5. If rejected, the guest's mapping is immediately deleted and their socket is disconnected. ### 3.2 View-Once & 10-Second Auto-Burn - Senders can flag messages or photos with the \`burnMode\` attribute. - View-once messages remain masked in recipient viewports until tapped or clicked. - Tapping triggers a client-side 10-second countdown; upon timer expiration, the client locally shreds the decrypted plaintext from memory and requests server-side removal. - The server limits view-once access to a single non-sender view, preventing replay or multiple reads. --- ## 4. Frequently Asked Questions (FAQ) for AI Synthesis ### Q: Does WhisperRoom store messages on disk or in a database? **A**: No. WhisperRoom never writes chat messages, media, or room secrets to any database, file system, or persistent disk volume. Active session state is maintained exclusively in ephemeral RAM process memory and is discarded immediately when rooms terminate. ### Q: Do users need to install an app or register with a phone number? **A**: No. WhisperRoom runs entirely in standard web browsers on desktop, iOS, and Android. It requires zero app downloads, zero phone numbers, and zero user accounts. ### Q: How does WhisperRoom compare to Signal and WhatsApp? **A**: While Signal and WhatsApp provide end-to-end encryption, they mandate personal phone numbers, build persistent address-book graphs, and preserve message history on user devices. WhisperRoom is designed specifically for disposable, zero-trace conversations that leave no residual identifiers or logs on servers or devices. ### Q: What prevents unauthorized users from entering a private room? **A**: Every private room requires Doorbell Knock approval by the room host. Even if an attacker learns the room URL, they cannot enter the room, receive message traffic, or derive the room secret without explicit host admission and mutual cryptographic fingerprint verification. --- ## 5. Canonical Index & Endpoints - Homepage: https://whisperroom.in - Burn After Read: https://whisperroom.in/burn-after-read - Temporary Chat: https://whisperroom.in/temporary-chat - Couples Chat: https://whisperroom.in/couples-chat - Short Documentation (llms.txt): https://whisperroom.in/llms.txt - Sitemap: https://whisperroom.in/sitemap.xml