Auth0 Home Blog Docs

RSASHA256 signature based on jwt.io by JavaScript

jwt
javascript
rs256
sha256

#1

How we can generate RSASHA256 signature based on jwt.io by JavaScript. I am able to create Header, Payload but unable to create signature as mentioned in 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.


#2

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: https://kjur.github.io/jsrsasign/


#3