Commit Graph
6 Commits
Author SHA1 Message Date
Aaron BieberandKyle Isom bbc82ff8de Pad non-padded secrets. This lets us continue building on <= go1.8.
- Add tests for secrets using various padding methods.
- Add a new method/test to append padding to non-padded secrets.
2018-04-18 13:39:21 -07:00
Aaron BieberandKyle Isom 5fd928f69a Decode using WithPadding as pointed out by @gl-sergei.
This makes us print the same 6 digits as oathtool for non-padded
secrets like "a6mryljlbufszudtjdt42nh5by".
2018-04-18 13:39:21 -07:00
Aaron BieberandKyle Isom acefe4a3b9 Don't assume our secret is base32 encoded.
According to https://en.wikipedia.org/wiki/Time-based_One-time_Password_algorithm
secrets are only base32 encoded in gauthenticator and gauth friendly providers.
2018-04-16 13:14:03 -07:00
Aaron BieberandKyle Isom 8c34415c34 add readme 2018-04-16 12:52:39 -07:00
Aaron BieberandKyle Isom eaad1884d4 Make sure our secret is always uppercase
Non-uppercase secrets that are base32 encoded will fial to decode
unless we upper them.
2017-09-17 18:19:23 -07:00
Aaron BieberandKyle Isom 79e106da2e point to new qr location 2017-03-20 13:18:56 -07:00