| Age | Commit message (Collapse) | Author |
|
This fix the following error detected by gocheck,
public_mode_test.go:45:16: struct with 288 pointer bytes could be 264
|
|
If the footer is empty then the message will be unpacked with its own
public key, instead of sender public key.
|
|
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.
|
|
The paseto/v4 now can replace the previous paseto/v2 package.
|
|
|
|
This provides simple operation when working with Pack and Unpack.
|
|
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.
|
|
Instead of fixed strings, predefined the error variables so the caller
can check the actual error.
|
|
The Pack method returns the signed [paseto.Message] as public token.
The token then verified and decoded into Message using the Unpack method.
|
|
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
|
|
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
|