# JWT Token Encryption

**URL:** <https://community.auth0.com/t/jwt-token-encryption/99392>\
**Category:** Get Help\
**Tags:** extensibility, rules-externsibility\
**Created:** [January 31, 2023, 4:32pm UTC](https://community.auth0.com/t/jwt-token-encryption/99392 "2023-01-31T16:32:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeep.k](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sandeep.k/32/42383_2.png) [@sandeep.k](https://community.auth0.com/u/sandeep.k)\
**Post date:** [January 31, 2023, 4:32pm UTC](https://community.auth0.com/t/jwt-token-encryption/99392/1 "2023-01-31T16:32:36Z")

</div>

Hi, i want to encrypt the jwt access token, is there any way i can achieve using Rules or Actions?.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [January 31, 2023, 10:46pm UTC](https://community.auth0.com/t/jwt-token-encryption/99392/3 "2023-01-31T22:46:17Z")

</div>

Hi @sandeep.k ,

Welcome to the Auth0 Community!

As of the current design, we can not encrypt the jwt access token with Action or Rule. May I know why you want to encrypt the jwt access token?

Thanks!

---

<div class="post-metadata">

**Author:** ![sandeep.k](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sandeep.k/32/42383_2.png) [@sandeep.k](https://community.auth0.com/u/sandeep.k)\
**Post date:** [February 1, 2023, 5:27am UTC](https://community.auth0.com/t/jwt-token-encryption/99392/5 "2023-02-01T05:27:52Z")

</div>

Thanks for the reply @lihua.zhang, it was ask from business end to encrypt as they don’t want access token to be tampered. Is there any other option can be looked at?.

---

<div class="post-metadata">

**Author:** ![lpapadakos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lpapadakos/32/13136_2.png) [@lpapadakos](https://community.auth0.com/u/lpapadakos)\
**Post date:** [February 1, 2023, 10:22am UTC](https://community.auth0.com/t/jwt-token-encryption/99392/6 "2023-02-01T10:22:26Z")

</div>

My case is similar to @sandeep.k . Does Auth0 have or recommend a way to have the JWT token encrypted?

---

<div class="post-metadata">

**Author:** ![sandeep.k](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sandeep.k/32/42383_2.png) [@sandeep.k](https://community.auth0.com/u/sandeep.k)\
**Post date:** [February 2, 2023, 12:54pm UTC](https://community.auth0.com/t/jwt-token-encryption/99392/7 "2023-02-02T12:54:05Z")

</div>

Any suggestions here?

---

<div class="post-metadata">

**Author:** ![mikejs78](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mikejs78/32/55449_2.png) [@mikejs78](https://community.auth0.com/u/mikejs78)\
**Post date:** [March 7, 2024, 2:21pm UTC](https://community.auth0.com/t/jwt-token-encryption/99392/8 "2024-03-07T14:21:32Z")

</div>

If it’s tampering you’re worried about, I don’t think that’s an issue even without encryption. JWTs are signed, so any tampering would invalidate the signature and make it an invalid token.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 26, 2024, 11:47pm UTC](https://community.auth0.com/t/jwt-token-encryption/99392/9 "2024-11-26T23:47:39Z")

</div>

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