PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Decode JWT
Decode JWT
Started by ChristoK!, Jan., 08 2018 12:56 PM - 2 replies
Connect yourself…
ChristoK!
#1
Posted on January, 08 2018 - 12:56 PM
Greetings Gang...
Does anyone know how to decode a jwt using WX???
Report
1
0
Charly
#2
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
Report
0
0
Christian
#3
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.
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text