DEV Community

Discussion on: Be careful of the JWT hype train

 
uclaeamsavino profile image
uclaeamsavino

Encryption (checking the token contents against the signature) works to ensure that everything in your JWT token is valid and hasn't been altered. So it's public, but you can trust it.

Thread Thread
 
philnash profile image
Phil Nash

That’s not encryption, that’s just signing. The data in a JWT is base64-url encoded, but otherwise easily readable.

There is a standard for JWT encryption, but that’s a whole extra level of pain.