Skip to content

Instantly share code, notes, and snippets.

@kenshaw
Created January 23, 2016 09:26
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 kenshaw/32dd9028fcb5525c36ca to your computer and use it in GitHub Desktop.
Save kenshaw/32dd9028fcb5525c36ca to your computer and use it in GitHub Desktop.
ken@ken-desktop:~/src/go/src/github.com/knq/jwt/cmd/jwt$ echo "eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9.eyJleHAiOjEuMzAwODE5MzhlKzA5LCJodHRwOi8vZXhhbXBsZS5jb20vaXNfcm9vdCI6dHJ1ZSwiaXNzIjoiam9lIn0.KWZEuOD5lbBxZ34g7F-SlVLAQ_r5KApWNWlZIIMyQVz5Zs58a7XdNzj5_0EcNoOy" |./jwt -dec -alg HS384 -k ../../testdata/hmac.pem |jq '.'
{
"header": {
"alg": "HS384",
"typ": "JWT"
},
"payload": {
"exp": 1300819380,
"http://example.com/is_root": true,
"iss": "joe"
},
"signature": "KWZEuOD5lbBxZ34g7F+SlVLAQ/r5KApWNWlZIIMyQVz5Zs58a7XdNzj5/0EcNoOy"
}
ken@ken-desktop:~/src/go/src/github.com/knq/jwt/cmd/jwt$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment