|
|
0857b29624
|
Actually support clock mocking.
|
2020-10-31 07:24:34 -07:00 |
|
CodeLingo Bot
|
e95404bfc5
|
Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
|
2020-10-30 14:57:11 -07:00 |
|
ujjwalsh
|
924654e7c4
|
Added Support for Linux on Power
|
2020-10-30 07:50:32 -07:00 |
|
|
|
9e0979e07f
|
Support clock mocking.
This addresses #15.
|
2018-12-07 08:23:01 -08:00 |
|
Aaron Bieber
|
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 Bieber
|
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 Bieber
|
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 |
|
|
|
a1452cebc9
|
Travis requires a string for Go 1.10.
|
2018-04-16 13:03:16 -07:00 |
|
|
|
6e9812e6f5
|
Vendor dependencies and add more tests.
|
2018-04-16 13:03:16 -07:00 |
|
Aaron Bieber
|
8c34415c34
|
add readme
|
2018-04-16 12:52:39 -07:00 |
|
Paul TREHIOU
|
2cf2c15def
|
Case insensitive algorithm match
|
2018-04-16 12:43:27 -07:00 |
|
Aaron Bieber
|
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 |
|
|
|
5d57d844d4
|
Add license (MIT).
|
2017-04-13 10:02:20 -07:00 |
|
Kyle Isom
|
31b9d175dd
|
Add travis config.
|
2017-03-20 14:20:49 -07:00 |
|
Aaron Bieber
|
79e106da2e
|
point to new qr location
|
2017-03-20 13:18:56 -07:00 |
|
Kyle Isom
|
939b1bc272
|
Updating imports.
|
2015-08-12 12:29:34 -07:00 |
|
Kyle
|
89e74f390b
|
Add doc.go, finish YubiKey removal.
|
2014-04-24 20:43:13 -06:00 |
|
Kyle
|
7881b6fdfc
|
Remove test TOTP client.
|
2014-04-24 20:40:44 -06:00 |
|
Kyle
|
5bef33245f
|
Remove YubiKey (not currently functional).
|
2014-04-24 20:37:53 -06:00 |
|
Kyle
|
84250b0501
|
More documentation.
|
2014-04-24 20:37:00 -06:00 |
|
Kyle Isom
|
459e9f880f
|
Add function to build Google TOTPs from secret
|
2014-04-23 16:54:16 -07:00 |
|
Kyle Isom
|
0982f47ce3
|
Add last night's progress.
Basic functionality for HOTP, TOTP, and YubiKey OTP. Still need YubiKey
HMAC, serialisation, check, and scan.
|
2013-12-20 17:00:01 -07:00 |
|
Kyle Isom
|
1dec15fd11
|
add missing files
new files are
oath_test
totp code
|
2013-12-19 00:21:26 -07:00 |
|
Kyle Isom
|
2ee9cae5ba
|
Add basic Google Authenticator TOTP client.
|
2013-12-19 00:20:00 -07:00 |
|
Kyle Isom
|
dc04475120
|
HOTP and TOTP-SHA-1 working.
why the frak aren't the SHA-256 and SHA-512 variants working
|
2013-12-19 00:04:26 -07:00 |
|
Kyle Isom
|
dbbd5116b5
|
Initial import.
Basic HOTP functionality.
|
2013-12-18 21:48:14 -07:00 |
|