~/talk

Dodging Web Crypto API Landmines

Talkat Web Rebels 2018 · 2018-06-04..06-05· [security, web-platform]
slides:none on file

Practical guide to browser crypto that shows working code paths: use AES-GCM with a 256-bit key and 12‑byte IV, derive that key from a password with PBKDF2 with SHA‑256 and a 32‑byte salt, generate salt/IV with crypto.getRandomValues, and bundle salt+IV+ciphertext (base64) for storage. Measurements: native PBKDF2 at ~25k–200k iterations is ~100 ms on laptop, AES encrypt 1 KB <0.5 ms; polyfills and mobile are slower. Caveats: feature detection is trial-and-error, Edge/IE gaps, and no password reset.

AI-written summary · about

  1. 0:00Introduction to Web Crypto
  2. 1:06Why use browser crypto
  3. 2:51Subtle Crypto API overview
  4. 5:19Typed arrays for binary data
  5. 7:46Understanding crypto keys
  6. 9:31AES-GCM encryption basics
  7. 11:19PBKDF2 key derivation
  8. 13:26Browser support and polyfills
  9. 13:48Encryption workflow example
  10. 23:21Decryption workflow example
  11. 25:49Critical implementation notes
  12. 27:35Polyfill options and limitations
  13. 28:18Performance benchmarks
  14. 30:23Web workers for efficiency
  15. 31:47Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.