/one-time-passwords

Exploring HOTP and TOTP in Ruby

Primary LanguageRubyMIT LicenseMIT

NOTE. The code in this repository is a mess. I used it to help me explore and understand one-time passwords. All of which resulted in the Understanding one-time passwords blog post.


One-time passwords

Exploring HOTP and TOTP in Ruby.

Notes

OATH Tool

Using OATH Tool to generate the same token as Authy when using the the same :

$ oathtool --base32 --totp <shared-secret>

I tested the above command with the shared secret from our GFR GitHub admin user and confirmed that the tokens were the same in both Authy and on the command line.