Skip to content

Instantly share code, notes, and snippets.

@lechidung
Created December 7, 2018 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lechidung/92ddd4d9590e256041a7644dd1303ff7 to your computer and use it in GitHub Desktop.
Save lechidung/92ddd4d9590e256041a7644dd1303ff7 to your computer and use it in GitHub Desktop.
jwt - signature
$encodedContent = base64UrlEncode(header) + “.” + base64UrlEncode(payload);
$signature = hashHmacSHA256($encodedContent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment