0

On this https://jwt.io/ application, you can paste a jwt and it returns you a public key. How is this public key generated, and how is it exported? Is it contained inside the JWT, and if it is, then how? In raw format?

auspicious99
  • 493
  • 3
  • 17

1 Answers1

1

The UI does not make this all too transparent, but no public key is exported. You should see an invalid signature info message below the left input field.

This means, that while jwt.io was able to read your token, it was not able to verify the signature. You can, however, provide the website with your secret (depending on the algorithm, a public and private key or shared secret): with this information, it is now able to verify the signature.

A JSON Web Token consists of three parts: a header, a body and a signature. These are highlighted in three colors by the jwt.io website.

Word of advise: never give out production level keys or tokens.

auspicious99
  • 493
  • 3
  • 17
phisch
  • 1,305
  • 10
  • 14