Verify JWT Signature

Just starting out? Need help? Post your questions and find answers here.
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Verify JWT Signature

Post by LuckyLuke »

Hi

I'm looking for an example in Purebasic (or c library) to create and verify a JWT Signature.

The JWT I use to test can be found on https://jwt.io

Code: Select all

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.DPA7RLzWH2bxJGO_q8cjhAXUHFhdxqMcrQ2jDyCS44I
Thanks.

LuckyLuke
Cyllceaux
Enthusiast
Enthusiast
Posts: 511
Joined: Mon Jun 23, 2014 1:18 pm

Re: Verify JWT Signature

Post by Cyllceaux »

Ola,

on the jwt website, there are some c-libs linked.
  • libjwt
  • cjose
  • l8w8jwt
  • jsmn
But I think the php sources are easier to convert.
https://github.com/cdoco/php-jwt looks easy
Post Reply