aboutsummaryrefslogtreecommitdiffstats
path: root/util/paseto.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.paseto: Implementation of PASETO v4.public tokensMatthew Wild2022-06-241-0/+123
PASETO provides an alternative to JWT with the promise of fewer implementation pitfalls. The v4.public algorithm allows asymmetric cryptographically-verified token issuance and validation. In summary, such tokens can be issued by one party and securely verified by any other party independently using the public key of the issuer. This has a number of potential applications in a decentralized network and ecosystem such as XMPP. For example, such tokens could be combined with XEP-0317 to allow hats to be verified even in the context of a third-party MUC service.