# RSASHA256 signature based on jwt.io by JavaScript

**URL:** <https://community.auth0.com/t/rsasha256-signature-based-on-jwt-io-by-javascript/7521>\
**Category:** Get Help\
**Tags:** sha256, jwt, rs256, javascript\
**Created:** [July 14, 2017, 4:55pm UTC](https://community.auth0.com/t/rsasha256-signature-based-on-jwt-io-by-javascript/7521 "2017-07-14T16:55:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinodtiwari10](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@vinodtiwari10](https://community.auth0.com/u/vinodtiwari10)\
**Post date:** [July 14, 2017, 4:55pm UTC](https://community.auth0.com/t/rsasha256-signature-based-on-jwt-io-by-javascript/7521/1 "2017-07-14T16:55:16Z")

</div>

How we can generate RSASHA256 signature based on [jwt.io](http://jwt.io) by JavaScript. I am able to create Header, Payload but unable to create signature as mentioned in [jwt.io](http://jwt.io) by JavaScript for RSASHA256. While i am able to do for SHA256. Is there any JavaScript code are available to generate signature for RSASHA256.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 17, 2017, 3:22pm UTC](https://community.auth0.com/t/rsasha256-signature-based-on-jwt-io-by-javascript/7521/2 "2017-07-17T15:22:45Z")

</div>

Although JWT’s are associated with authentication and authorization and as such are associated with the Auth0 service the exact thing you’re trying to accomplish does not fit the main goal of this support forum which is providing assistance and clarification to developers making use of Auth0.

That type of question would be a better fit for StackOverflow , although you may need to post it there with additional information about what you already tried and the exact failure.

Having said that, you should look at the `jsrsasign` library as it seems it would be applicable for your use case: [jsrsasign - cryptography library in JavaScript](https://kjur.github.io/jsrsasign/)

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/rsasha256-signature-based-on-jwt-io-by-javascript/7521/3 "2018-03-02T05:55:23Z")

</div>


