# Can JWT easily be hacked by Debugger?

**URL:** <https://community.auth0.com/t/can-jwt-easily-be-hacked-by-debugger/102259>\
**Category:** JWT.io\
**Tags:** debugger\
**Created:** [March 10, 2023, 11:03am UTC](https://community.auth0.com/t/can-jwt-easily-be-hacked-by-debugger/102259 "2023-03-10T11:03:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tone](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tone/32/45321_2.png) [@Tone](https://community.auth0.com/u/Tone)\
**Post date:** [March 10, 2023, 11:03am UTC](https://community.auth0.com/t/can-jwt-easily-be-hacked-by-debugger/102259/1 "2023-03-10T11:03:44Z")

</div>

This is probably a super noob question, so please bear with. I’m using the jsonwebtoken library in Node to generate a JWT. I can copy and past this token into the debugger at [jwt.io](http://jwt.io) and see my header and all my payload data without a proper “Verify Signature” field.

How is this so? Isn’t my data supposed to be encrypted using the signature? Can a hacker simply copy an access token from an HTTP response and paste it into the JWT debugger and view all the data within the token without knowing the " secretOrPrivateKey"?

Please clarify, thanks!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 16, 2023, 11:29pm UTC](https://community.auth0.com/t/can-jwt-easily-be-hacked-by-debugger/102259/3 "2023-03-16T23:29:40Z")

</div>

Hey there @Tone welcome to the community!

I apologize for the delayed response on this one but wanted to get it out there 🙂

> [@Tone](#):
>
> How is this so? Isn’t my data supposed to be encrypted using the signature? Can a hacker simply copy an access token from an HTTP response and paste it into the JWT debugger and view all the data within the token without knowing the " secretOrPrivateKey"?

While JWTs can be encrypted (JWE), Okta/Auth0 at this time does not support them. The JWTs that Auth0 issues are signed rather than encrypted so you’re correct in thinking that they could be intercepted and decoded revealing the data inside. Long story short, with a signed JWT you can verify that the data hasn’t been changed and is thus valid. Confidential information shouldn’t be stored in tokens. The following resources provide some useful information on token best practices, security, and more in-depth technical details:

> **[JSON Web Tokens](https://auth0.com/docs/secure/tokens/json-web-tokens#security)**
>
> Learn about JSON web tokens (JWTs) and how they are used.

> **[Token Best Practices](https://auth0.com/docs/secure/tokens/token-best-practices)**
>
> Lists best practices when using tokens in authentication and authorization.

> <https://stackoverflow.com/questions/27301557/if-you-can-decode-jwt-how-are-they-secure>

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Tone](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tone/32/45321_2.png) [@Tone](https://community.auth0.com/u/Tone)\
**Post date:** [March 17, 2023, 4:59am UTC](https://community.auth0.com/t/can-jwt-easily-be-hacked-by-debugger/102259/4 "2023-03-17T04:59:43Z")

</div>

Much appreciated @ty.frith! that answers my question. I’ll check out the docs you sent now 🙂

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 28, 2023, 12:03am UTC](https://community.auth0.com/t/can-jwt-easily-be-hacked-by-debugger/102259/5 "2023-03-28T00:03:40Z")

</div>

No problem, happy to help! 🚀

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 11, 2023, 12:04am UTC](https://community.auth0.com/t/can-jwt-easily-be-hacked-by-debugger/102259/6 "2023-04-11T00:04:05Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
