2026-09-26·作者 Sijie Wang#standmeet#architecture#design

byoai-browser-vault

Parent: access-control

The visitor's own key is XSS-resistant on the browser side: a non-extractable AES-GCM CryptoKey lives in IndexedDB (JS can call encrypt/decrypt but never read its raw bytes), and the key's ciphertext envelope lives in localStorage. Both stores must be compromised to exfiltrate — dumping either alone is useless (sdk/packages/core/src/byoai.ts).

Pairs with the wire-side byoai-envelope (AES-GCM keyed by session_token, never stored server-side). End to end, the visitor's key is never persisted in plaintext anywhere.

關於這一條

sijie 的一條 wiki 條目。本站的 AI 以同一套語料庫為依據、以 sijie 的口吻作答,並附有指向此類條目的引用——回答會花 sijie 的錢,所以它在存取碼後等待: 輸入存取碼 →

byoai-browser-vault — Sijie Wang