aboutsummaryrefslogtreecommitdiff
path: root/lib/paseto/v4
AgeCommit message (Collapse)Author
11 dayspaseto/v4: realign struct in testShulhan
This fix the following error detected by gocheck, public_mode_test.go:45:16: struct with 288 pointer bytes could be 264
14 dayspaseto/v4: allow empty Footer and empty data in PayloadShulhan
If the footer is empty then the message will be unpacked with its own public key, instead of sender public key.
2026-03-31lib/paseto: move [Message.Unpack] to [v4.UnpackPublicToken]Shulhan
Unpacking v4 public protocol on parent package seems wrong. Only v4 package should know how to unpack it regarding the available fields in the Message.
2026-03-30lib/paseto: update v4 package doc and mark v2 as deprecatedShulhan
The paseto/v4 now can replace the previous paseto/v2 package.
2026-03-30lib/paseto: rename the field Public and Private in PeerShulhan
2026-03-30paseto/v4: embed the Peer inside the PublicModeShulhan
This provides simple operation when working with Pack and Unpack.
2026-03-30paseto/v4: improve examples by splitting example and packageShulhan
By not using the same package name in example, we can see how the package actually used in real code. For instance, we can know that constant publicHeader should be exported so it could be used by Unpack method.
2026-03-30lib/paseto: predefines errors variablesShulhan
Instead of fixed strings, predefined the error variables so the caller can check the actual error.
2026-03-30paseto/v4: implements API to Pack and Unpack Message for PublicModeShulhan
The Pack method returns the signed [paseto.Message] as public token. The token then verified and decoded into Message using the Unpack method.
2026-03-29paseto/v4: implements public protocol for paseto version 4Shulhan
paseto/v4 provides a simple, ready to use, opinionated implementation of Platform-Agnostic SEcurity TOkens (PASETO) version 4 as defined in [paseto-v4]. The public protocol contains method to sign and verify the message into/from paseto token. [paseto-v4]: https://github.com/paseto-standard/paseto-spec/blob/master/docs/01-Protocol-Versions/Version4.md
2026-03-29paseto/v4: implements local protocol for paseto version 4Shulhan
paseto/v4 provides a simple, ready to use, opinionated implementation of Platform-Agnostic SEcurity TOkens (PASETO) version 4 as defined in [paseto-v4]. [paseto-v4]: https://github.com/paseto-standard/paseto-spec/blob/master/docs/01-Protocol-Versions/Version4.md