~/talk

Creating Your Own Image Format in the Browser

Talkat JSConfCO 2018 · on Friday, 2018-11-16· [web-platform, security]

Claim: a browser can polyfill a new encrypted image format end to end. Implementation uses Service Worker fetch hook to intercept .epg, decrypts bytes with Streams + SubtleCrypto and returns a Response blob typed image/png. Uses AES‑CTR with AES-CTR 128-bit blocks and handles partial blocks via remainder buffering. A streaming TransformStream pipes Response.body through a decrypter so decryption begins before full download, demos work and show much lower latency than batch decrypting.

AI-written summary · about

  1. 0:00Intro
  2. 1:58JavaScript
  3. 2:59Why this is important
  4. 3:43Who am I
  5. 4:55Polyfill
  6. 6:11Web Crypto API
  7. 6:48What are we building
  8. 8:22Fetch event
  9. 9:17Respond with methods
  10. 10:00Code
  11. 14:05Crypto API
  12. 15:06Crypto Key API
  13. 19:38Implementing Stream Processing
  14. 20:48The Streams API
  15. 21:49The Streams Interface
  16. 22:37The Decrypter Object
  17. 23:38The Transform Function
  18. 25:23Flush Function
  19. 25:51Demo
  20. 26:45Conclusion
  21. 27:32WebAssembly
  22. 28:14Browser caching
  23. 28:43Polyfill extensions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.