[fpc-pascal] JSON Web Token (JWT) implementation needed

leledumbo leledumbo_cool at yahoo.co.id
Fri Jan 8 09:40:09 CET 2016


> I didn't implement verification, and I don't plan any. 
> But contributions are welcome. 

Looks like a new entry in hmac unit + new sha256 unit would be needed. Codes
are around the net but sticking to existing hash package citizens would be
better for FPC future. Hope my crypto skill still stands :)

> That is OK.
> The encoded value depends for example on the amount of whitespace in the
> JSON. 
> Also, JSON doesn't specify an order of keys (property names), so the input
> and 
> output keys can be in a different order, which will also result in a
> different 
> encoded value. 

Understood.



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/JSON-Web-Token-JWT-implementation-needed-tp5723516p5723523.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list