• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yuce / pot
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: update-readme-mix-example
DEFAULT BRANCH: master
Repo Added 19 May 2018 10:35PM UTC
Files 2
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH hotp_return_interval
branch: hotp_return_interval
CHANGE BRANCH
x
Reset
  • hotp_return_interval
  • 0.10.1
  • 0.10.2
  • 0.11.0
  • 0.9.8
  • 1.0.0
  • enable-coveralls
  • master
  • releasing-0.10.1
  • releasing-0.10.2
  • releasing-0.11.0
  • releasing-0.11.1
  • releasing-1.0.0

pending completion
56

Pull #24

travis-ci

web-flow
Add return_interval option to valid_hotp

There is a flaw in the `valid_hotp` logic introduced in https://github.com/yuce/pot/pull/15 that prevents it from being effectively used: because it returns a raw `boolean`, there is no way to know *which* interval matched: the next one, the 1000th one, or somewhere in between? In order to effectively implement a proper HOTP scheme, you need to track the interval number of the last valid HOTP to prevent its reuse, OR the reuse of a HOTP from any previous interval.

For backwards compatibility, I have retained the default `boolean()` response, but if the `return_interval` option is set, the interval will be returned when a hotp is valid, like `{true, interval()}`.
Pull Request #24: Add return_interval option to valid_hotp

3 of 3 new or added lines in 1 file covered. (100.0%)

140 of 140 relevant lines covered (100.0%)

7200.06 hits per line

Relevant lines Covered
Build:
Build:
140 RELEVANT LINES 140 COVERED LINES
7200.06 HITS PER LINE
Source Files on hotp_return_interval
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
56 hotp_return_interval Add return_interval option to valid_hotp There is a flaw in the `valid_hotp` logic introduced in https://github.com/yuce/pot/pull/15 that prevents it from being effectively used: because it returns a raw `boolean`, there is no way to know *which*... Pull #24 19 Feb 2020 10:29PM UTC web-flow travis-ci pending completion  
57 hotp_return_interval Add return_interval option to valid_hotp There is a flaw in the `valid_hotp` logic introduced in https://github.com/yuce/pot/pull/15 that prevents it from being effectively used: because it returns a raw `boolean`, there is no way to know *which*... push 19 Feb 2020 10:29PM UTC nalundgaard travis-ci pending completion  
55 hotp_return_interval Add return_interval option to valid_hotp There is a flaw in the `valid_hotp` logic introduced in https://github.com/yuce/pot/pull/15 that prevents it from being effectively used: because it returns a raw `boolean`, there is no way to know *which*... Pull #24 19 Feb 2020 04:28AM UTC web-flow travis-ci pending completion  
54 hotp_return_interval Add return_interval option to valid_hotp There is a flaw in the `valid_hotp` logic introduced in https://github.com/yuce/pot/pull/15 that prevents it from being effectively used: because it returns a raw `boolean`, there is no way to know *which*... push 19 Feb 2020 04:28AM UTC nalundgaard travis-ci pending completion  
53 hotp_return_interval Add return_interval option to valid_hotp There is a flaw in the `valid_hotp` logic introduced in https://github.com/yuce/pot/pull/15 that prevents it from being effectively used: because it returns a raw `boolean`, there is no way to know *which*... Pull #24 19 Feb 2020 04:22AM UTC web-flow travis-ci pending completion  
52 hotp_return_interval Add return_interval option to valid_hotp There is a flaw in the `valid_hotp` logic introduced in https://github.com/yuce/pot/pull/15 that prevents it from being effectively used: because it returns a raw `boolean`, there is no way to know *which*... push 19 Feb 2020 04:22AM UTC nalundgaard travis-ci pending completion  
See All Builds (115)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc