Page 1 of 1

Verify JWT Signature

Posted: Mon Jan 11, 2021 12:09 pm
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.

Re: Verify JWT Signature

Posted: Mon Jan 11, 2021 3:17 pm
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