[fpc-pascal] JSON Web Token (JWT) implementation needed
leledumbo
leledumbo_cool at yahoo.co.id
Fri Jan 8 09:00:10 CET 2016
Some questions:1. How to verify the signature? My grep result in packages
folder doesn't show that we have HMAC256 function.2. The following
sample:{$mode objfpc}{$H+}uses fpjwt, jsonparser;const EncodedStr =
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ';var
j: TJWT;begin j := TJWT.Create; j.AsString := EncodedStr;
WriteLn(j.AsString); WriteLn(EncodedStr); j.Free;end.Shows that the
original EncodedStr and j.AsString differs. Is this OK or a bug?
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/JSON-Web-Token-JWT-implementation-needed-tp5723516p5723521.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160108/b659c436/attachment.html>
More information about the fpc-pascal
mailing list