~/talk

What makes JSON Web Tokens (JWT) secure?

Talkat JSFoo 2018 · on Friday, 2018-10-26· [security]

Explains JWT as header payload signature, shows signing with HMAC SHA256 and recommends a 256‑bit secret, compares HS256 RS256 and ES256 and measures tradeoffs, demonstrates concrete attacks (alg none signature‑stripping RS/HS confusion substitution when reusing secrets XSS and token theft), and gives fixes: whitelist algorithms, include audience claim, use different secrets per service, short-lived tokens with silent refresh, avoid persistent localStorage, and use vetted libraries and the jwt.io debugger to test implementations.

AI-written summary · about

  1. 0:00Start
  2. 12:50none no signature
  3. 13:01HS256: HMAC + SHA-256 relies on a shared secret
  4. 13:19RS256: RSASSA + SHA-256 relies on a private public RSA key pair
~/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.