Giter Club home page Giter Club logo

Comments (4)

paragonie-scott avatar paragonie-scott commented on August 23, 2024 1

There's actually two components to PASETO:

  1. The encryption/signing layer.
  2. The JSON token (claims) layer.

You can pull out just Version1 and Version2 and use them for arbitrary text. We just built a token API on top of them in PASETO proper.

Alternatively: drop everything into a footer if you're only using v2.public (which uses Ed25519), since those are arbitrary data.

from paseto.

anweiss avatar anweiss commented on August 23, 2024

@paragonie-scott in your second example where everything is dropped into a footer if only v2.public is used, is it assumed that the message, m, is therefore empty and the footer, f, houses the arbitrary data? As written, the spec seems to require a message, m and only the footer, f, is optional. Thus the message format becomes as follows:

version.purpose.footer

from paseto.

paragonie-security avatar paragonie-security commented on August 23, 2024

@anweiss The message part contains the signature and/or MAC, so it's not possible to have an empty message there.

from paseto.

paragonie-security avatar paragonie-security commented on August 23, 2024

I'm going to close this. If you still have a question, please let us know.

https://github.com/paseto-standard/paseto-spec is where the specification lives now

from paseto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.