Generate a secure JWT (HS256) from header, payload and secret.
This tool generates a secure JSON Web Token (JWT) using the HS256 algorithm. It encodes a header and payload, then signs the token using a secret key.
Header:
{ "alg": "HS256", "typ": "JWT" }
Payload:
{ "userId": 123 }
Example output:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...