QJsonWebToken
QJsonWebToken copied to clipboard
Is it possible to use public key to verify?
Giving is a jwt (ES256) and a public-key. I want to verify the signature like this debugger: https://jwt.io/ Or is it not possible with Qt?
Have you tried the included jwtverifier example? Doesn't it do what you want?
Yes, but it don't work.
I haven't tested with complex secret, might be that the public key you are trying to use as a secret contains some C++ unsafe characters or something like that. Good news is that the code is open source, and not very complicated. I guess you can easily debug that.
From what I see, this project implements only HMAC. No PKI is available: no RSA, no Elliptic curves.
Oh yes, indeed, that is the very first thing mentioned in the README.md file. I did this project for a simple use case. But feel free to extend it, I am sure other people would be interested!