Code Monkey home page Code Monkey logo

Comments (3)

jedisct1 avatar jedisct1 commented on June 4, 2024

SCT's great and I like its simplicity!

Have you looked at Biscuit?

The choice of protobuf for serialization may not always be ideal, but Biscuit has some nice properties.

from libsodium-signcryption.

michelp avatar michelp commented on June 4, 2024

Thanks for the comment Frank!

Yes, Biscuit does appear to have some great properties, and there is definitely overlap in the bearer token aspect, and doesn't suffer from confusion attacks, but there are some challenges in my opinion (that I could be wrong about but here's my interpretation):

  • The Biscuit spec is complex, SCTs are just four high-level libsodium function calls.
  • Attenuation is very cool, but requires datalog interpretation.
  • Attenuation also seems to drive the need for a complex format (protobuf).
  • Most simple bearer token uses don't need attenuation.
  • From my reading it does not support encrypted blocks.
  • Biscuit implementations in as large an ecosystem of languages that already support libsodium would be a huge effort.

I think SCTs could be a basis on top of which one could implement Biscuit or PASERK like features, but my personal preference is to not mix layers like this. This is one concern I have with JWT and PASETO vis a vis JSON encoding, I feel like that's mixing a higher layer function with a transport, like saying a TCP stream required JSON. I think an SCT token can definitely transport attenuation claims, but I don't see the need to complicate this layer by requiring it.

from libsodium-signcryption.

michelp avatar michelp commented on June 4, 2024

I'm going to go ahead an close this issue here and open it up in a new repo for discussion as it's only tangentially related to this repo.

https://github.com/michelp/signcryption-token-spec/

from libsodium-signcryption.

Related Issues (4)

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.