Git Product home page Git Product logo

Comments (2)

Toreno96 avatar Toreno96 commented on June 5, 2024

I went through the RFC 4226 to find if there's any recommendation for the default counter value and while there's no such recommendation mentioned explicitly, it seems they always use 0 in the examples. It could be a sane default.

Although I'm not 100% sure, considering the Key URI always requires the counter parameter, there's no default supported.

from onetimepass.

Toreno96 avatar Toreno96 commented on June 5, 2024

Although I'm not 100% sure, considering the Key URI always requires the counter parameter, there's no default supported.

I just checked that if you choose to input the HOTP manually into the Google Authenticator, it won't ask about the counter, only the secret. So not only does the counter default to 0, the user cannot really change that.

In that case, +1 for this approach:

We should either support the default value (e.g. -c 0)

as this preserves the default behavior from the Google Authenticator, and at the same time, extends it (by giving the user the control).

Also, I believe otp add hotp alias --counter 0 is much more clear than otp add hotp alias 0.

from onetimepass.

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.