PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Decode JWT
Decode JWT
Started by ChristoK!, Jan., 08 2018 12:56 PM - 2 replies
Posted on January, 08 2018 - 12:56 PM
Greetings Gang...

Does anyone know how to decode a jwt using WX???
Registered member
5 messages
Posted on January, 10 2020 - 9:08 PM
Hello,

topic is old but I haven't found anything about this on the forum.

Si here is the function I made :


PROCÉDURE DecodeToken(header = False)

tabEncoded est un tableau de chaînes

ChaîneVersTableau(:m_sToken, tabEncoded, ".")

sEncodedHeader est une chaîne = tabEncoded[1]
sEncodedContent est une chaîne = tabEncoded[2]

sHeader est une chaîne = Décode(sEncodedHeader, encodeBASE64)
sContent est une chaîne = Décode(sEncodedContent, encodeBASE64)

IF(header) RENVOYER sHeader

RENVOYER sContent
Posted on March, 03 2023 - 12:47 PM
Salut Charly,

Un grand merci pour ton code qui m'a permis de décoder ce satané JTW.

Bonne journée.