JWT token online code generation

Time:2021-8-2

JWT token online code generation

JWT token online code generation

The three parts of JWT are as follows

  • Header
  • Payload
  • Signature

Header header

{
  "alg": "HS256",
  "typ": "JWT"
}

Payload

ISS (issuer): issuer
Exp (expiration time): expiration time
Sub (subject): subject
Aud (audience): audience
NBF (not before): effective time
IAT (issued at): issuing time
JTI (JWT ID): No

Signature

Generate rules. Secret is the secret key and must be kept strictly confidential.

HMACSHA256(
  base64UrlEncode(header) + "." +
  base64UrlEncode(payload),
  secret)

JWT token online code generation

https://tooltt.com/jwt-encode/