Decode JWT TCL
Decode JWT TCL
(OP)
Goodnight.
I'm trying to find a way to decode a jwt using only the TCL, does anyone have it or know a way to do it?
JWT Exemple.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
I'm trying to find a way to decode a jwt using only the TCL, does anyone have it or know a way to do it?
JWT Exemple.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
RE: Decode JWT TCL
RE: Decode JWT TCL
RE: Decode JWT TCL
But for Tcl i found only this library: https://www.chilkatsoft.com/refdoc/tclJwtRef.html
I tried it, but could not figure out, how to decode your example with it.
In contrast, with Python I was done quickly:
CODE
RE: Decode JWT TCL
RE: Decode JWT TCL
1) use the chilkat library (link given above), but it seems that it's not free and you have to buy it.
2) use any other external program (written in any other language) which should be called from Tcl and does the work. Then the result could be used inside of your Tcl code.
Personally, I would prefer the option 2
RE: Decode JWT TCL
https://jwt.io/libraries