Code Monkey home page Code Monkey logo

Comments (5)

mnot avatar mnot commented on June 8, 2024

Indeed.

Another approach would be to not send the time info from the server in the challenge, but only send an offset / staleness period in the case when the server decides that it's not fresh enough. Saves bits, reduces use of crypto, limits the exposure to only the failure case.

from hawk.

hueniverse avatar hueniverse commented on June 8, 2024

The goal is to put all the burden of time sync on the client and not involve the server other than giving a point of reference. See http://www.links.org/?p=1297 (which was posted while I was talking to Ben...)

from hawk.

mnot avatar mnot commented on June 8, 2024

Yes, absolutely. I was just wondering if it was necessary to put this info in the initial challenge; protecting it is likely to be difficult/expensive, I suspect.

from hawk.

hueniverse avatar hueniverse commented on June 8, 2024

The question is if this is going to save another round trip, it might be worth it. If Hawk is ever used in a discovery scenario, the client will need it.

Going to try: the server sends the client a MAC together with its time value. The client returns the time value, the MAC, whenever it relies on that time value as an offset. The server checks the mac to make sure its really a time value that it issued.

from hawk.

lock avatar lock commented on June 8, 2024

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

from hawk.

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.