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

Commits on Aug 6, 2021

  1. Address #11 - Bind Keys to Version and Purpose.

    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 committed Aug 6, 2021
    Configuration menu
    Copy the full SHA
    089ec72 View commit details
    Browse the repository at this point in the history