Re:Go Web Examples
by grey-area on Friday February 10, 2017 @09:28AM
(#13615546)
Is there anything wrong with encrypted cookies for client-side sessions?
[ Parent
| on HN ]
Nope. If there was, virtually every Rails app would be doomed.
There's a sort of intuitive insecurity quotient for things that goes something like C/W_s where C is complexity and W_s is the number of people in the world who would be screwed if something was totally broken.
Encrypted session cookies have, as a design, relatively modest C and very, very high W_s.
JWT has extraordinarily high C and, at present, modest W_s (relative to session cookies).
(They also have a bunch of design flaws that amplify their complexity).
Re:Go Web Examples
by nathancahill on Friday February 10, 2017 @09:51AM
(#13615723)
Yep. I was brought on to a project where the JWT secret was a 6 letter band name. It's the hotness newness in the JS community and there's a lot of tutorials out there that show how easy it is to set up without explaining the risks/trade-offs.