DEV Community

Discussion on: Forging JSON Web Tokens To Win a Prize

Collapse
 
philnash profile image
Phil Nash

This was a fun trip! I've been looking into JWTs a lot recently and at first I was scared there's such an easy cracker. I can only guess that if your secret is long enough (not 4 characters) that it's not going to be cracked quite so easily.

Cool challenge though!

Collapse
 
antoinette0x53 profile image
Antoinette Maria • Edited

Yes I agree. I did read a few articles while doing some further research later that suggests JWTs shouldn't be used for session management, but I won't pretend to be an expert.I'm fairly certain storing the data in a HTTPS-only cookie would not yield the same result.