Zero-Knowledge Encrypted Blob Vault: Syncing AI Chats Without Accounts, Passwords, or Logs

· By Pinkerton AI Research Lab

How Pinkerton AI uses client-side AES-256-GCM encryption and binary PKB1 blobs to sync your uncensored AI conversations across devices without storing a single byte in the clear.

In short: Pinkerton AI introduces the Zero-Knowledge Encrypted Blob Vault (PKB1). Instead of demanding an email address, password, or third-party OAuth provider to sync your chats across desktop and mobile, Pinkerton compresses your entire chat state with gzip, encrypts it on-device using AES-256-GCM via WebCrypto, and uploads a single authenticated binary blob to the cloud. The decryption key lives strictly inside your browser and in the URL hash fragment (#vault_sync=...) — meaning neither Pinkerton, nor Cloudflare, nor any backend database can ever read your conversations.

The fundamental flaw of mainstream AI chat storage

Whenever you use ChatGPT, Claude, or Gemini, your conversations are indexed in a centralized relational database on the provider's servers. Even platforms advertising "encryption at rest" hold the master decryption keys in their Key Management Service (KMS). This architecture creates three unavoidable risks for privacy-conscious users:

  • Subpoena and breach exposure: Any court order, rogue employee, or infrastructure breach exposes your complete prompt history and creative manuscripts in plaintext.
  • Mandatory personal profiling: You cannot sync a chat across devices without surrendering a phone number, credit card identity, or Google/Apple ID.
  • Model training recycling: Unless specifically opted out through enterprise contracts, centralized chat logs are continually harvested for model alignment and safety evaluations.

Pinkerton AI was built on the inverse principle: the server must be mathematically incapable of reading user data. With our initial release, chat history lived exclusively inside the user's local IndexedDB and localStorage (encrypted with AES-256-GCM via chat-crypto). But local-only storage had a major drawback: clearing browser cookies or switching between a desktop workstation and a smartphone resulted in a split history. The PKB1 Encrypted Blob Vault bridges that gap.

How the PKB1 binary vault works: from plaintext to opaque cloud blob

The synchronization pipeline executes entirely inside the client's browser thread before any network packet is dispatched:

  1. Payload Aggregation: When you send a message or modify your settings, the client bundles your active chat messages, conversation history list, display preferences, and studio generation links into a unified JSON workspace object.
  2. Gzip Compression Stream: The JSON string is streamed through the native CompressionStream("gzip") API. This reduces the raw payload footprint by 65% to 80%, ensuring multi-month chat histories rarely exceed a few hundred kilobytes.
  3. Cryptographic Sealing (AES-256-GCM): The client generates a fresh, cryptographically secure 12-byte Initialization Vector (IV). The compressed payload is encrypted with an authenticated 256-bit AES-GCM cipher using a non-extractable WebCrypto key.
  4. PKB1 Binary Envelope: The output is assembled into a strict binary layout: 4 magic header bytes (PKB1), followed by the 12-byte IV, followed by the ciphertext and authentication tag.
  5. Opaque Cloud Storage: The resulting binary payload is uploaded to Supabase using a specialized RPC (save_encrypted_vault) with a strict 5 MB per-session ceiling. To the database, the blob is indistinguishable from random noise.

Zero-Knowledge Device Pairing: Why URL hashes protect your privacy

The critical engineering breakthrough in Pinkerton's sync architecture is how a second device (such as an iPhone, Android, or laptop) acquires the decryption key without ever logging into an account.

When you click "Sync Zero-Knowledge" in the Pinkerton Chat menu, the app generates a pairing link:

https://pinkerton-ai.com/chat#vault_sync=[ANONYMOUS_SESSION_ID].[BASE64_URL_SECRET_KEY]

Per RFC 3986 and standard HTTP protocol specifications, the URI fragment identifier (the section starting with #) is strictly evaluated by the local user agent and is NEVER transmitted over the wire in HTTP requests. Cloudflare Pages, Supabase edge functions, and ISP routers never see the encryption key.

When you open that link or scan the corresponding QR code on your mobile device, the client JavaScript extracts the key from window.location.hash, stores it in the phone's secure local storage, pulls the encrypted PKB1 blob from the server, and immediately strips the hash fragment from the URL bar using window.history.replaceState().

Independent verification and auditability

Pinkerton AI's cryptographic implementation relies exclusively on standard, hardware-accelerated W3C Web Cryptography primitives (crypto.subtle), avoiding slow or vulnerable custom third-party crypto bundles. If you inspect network requests in your browser's DevTools, you will observe:

  • No cookies containing plaintext tokens or user identifiers.
  • No telemetry payloads sending unencrypted prompt strings.
  • The payload sent to save_encrypted_vault is pure Base64-encoded binary with high Shannon entropy (mathematically indistinguishable from random bytes).

Experience the new Zero-Knowledge Encrypted Vault today on Pinkerton Chat. Unfiltered AI intelligence, private model options like Gemma 4 26B TEE, and complete cross-device continuity — without giving up your name, your email, or your privacy.