Skip to content

Commit

Permalink
Merge pull request mdp#66 from mdp/fix_hotp_docs
Browse files Browse the repository at this point in the history
Fix values in hotp docs mdp#65
  • Loading branch information
mdp authored Jun 9, 2017
2 parents b46cb90 + 3c61156 commit 46c883c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ totp.provisioning_uri("[email protected]")

```ruby
hotp = ROTP::HOTP.new("base32secretkey3232")
hotp.at(0) # => "260182"
hotp.at(1) # => "055283"
hotp.at(1401) # => "316439"
hotp.at(0) # => "786922"
hotp.at(1) # => "595254"
hotp.at(1401) # => "259769"

# OTP verified with a counter
hotp.verify("316439", 1401) # => true
hotp.verify("316439", 1402) # => false
hotp.verify("259769", 1401) # => true
hotp.verify("259769", 1402) # => false
```

### Verifying a Time based OTP with drift
Expand Down

0 comments on commit 46c883c

Please sign in to comment.