Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#11] - Bind Keys to Version and Purpose. #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

atholbro
Copy link
Owner

@atholbro atholbro commented Aug 6, 2021

Adds strong key types for both V1 and V2:

  • SymmetricKey: Key for LOCAL tokens.
  • AsymmetricPublicKey: Public key for PUBLIC tokens.
  • AsymmetricSecretKey: Secret key for PUBLIC tokens.

Byte arrays are no longer accepted and must be wrapped in these types
with the correct version attached. Test vectors show usage, docs will
be updated to reflect this and other v1.0 changes.

More details can be found here and in issue #11:
https://github.com/paseto-standard/paseto-spec/blob/master/docs/02-Implementation-Guide/03-Algorithm-Lucidity.md

Adds strong key types for both V1 and V2:
- SymmetricKey: Key for LOCAL tokens.
- AsymmetricPublicKey: Public key for PUBLIC tokens.
- AsymmetricSecretKey: Secret key for PUBLIC tokens.

Byte arrays are no longer accepted and must be wrapped in these types
with the correct version attached. Test vectors show usage, docs will
be updated to reflect this and other v1.0 changes.

More details can be found here and in issue #11:
https://github.com/paseto-standard/paseto-spec/blob/master/docs/02-Implementation-Guide/03-Algorithm-Lucidity.md
@atholbro
Copy link
Owner Author

atholbro commented Aug 7, 2021

Thanks for taking a look and making the suggestion!

I'm going to write some tests then merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants