daviddesmet / paseto-dotnet

🔑 Paseto.NET, a Paseto (Platform-Agnostic Security Tokens) implementation for .NET
MIT License
99 stars 8 forks source link

Add support for PASERK Type: pid #59

Closed daviddesmet closed 1 year ago

daviddesmet commented 2 years ago

PASERK Type: pid

This kind of PASERK serves as a pointer to another PASERK, which is in turn intended for public PASETOs.

This is for serializing public keys in a keypair.

Format

k[version].pid.[data]

Calculations

See ID for the algorithm.

Examples

k1.pid.oxQIZk0yciX7cLRZ3C0Psdoj-RUqmVHrlnIYGNma6xy8
k2.pid.4zgEvkSaB64DlcV9ChYZPEqBATLwUsB5zCrlpEOk2wD9
k3.pid.gnwg7IkzZyQF9wJgLLT0OpbdMT7BYmdQoG2u-xXpeeHz
k4.pid.9ShR3xc8-qVJ_di0tc9nx0IDIqbatdeM2mqLFBJsKRHs