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 的钱,所以它在访问码后等待: 输入访问码 →