Verifying a JWT signature
I would like to create my own JWT signature to compare with the original. I see the following code on several sites:
HMACSHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
*secret base64 encoded*
)
There is no detail on what imports I need or code prior to this.
I have the three elements, just need help getting to the point to use the above.
|