Book 3 · Lesson 3.6
WASM sanitize on submit
- Run redact_pii_deterministic in the browser
- Explain deterministic tokens for EMAIL/PHONE
- Verify same input → same output
Prerequisites: 1.4 · 3.5
packages/redact-wasm compiles Rust to WASM — same logic in tests and browser.
pub fn redact_pii_deterministic(input: &str) -> String
WasmRedaction — submit notes and inspect safe payload.
Radar integration
apps/radar/src/pages/OneOnOnePortal.tsx calls redactInWorker before display/submit.
Build WASM
pnpm build:wasm
Teach-back prompt
Why deterministic hashes instead of random [REDACTED] each time?
WASM redact on 1:1 portal
Lab complete — nice work.