simukti / totp

Implementation of RFC-6238 (Time-Based One-Time Password Algorithm) in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TOTP

Coverage Status Go Report Card Sonar Violations (long format) Sonar Tech Debt Reliability Rating Security Rating License

TOTP (RFC-6238) implementation in Go with no external dependencies.

INSTALL

You can do little copying the totp.go file or add this package as Go module dependency as follows (version pinning is highly encouraged):

go get -u -v github.com/simukti/totp

USAGE

See totp_test.go.

NOTES

  • Shared-secret (key) parameter is in []byte and will be used as-is, the implementor should handle its encoding/decoding as needed.
  • It will only provide the code at the given time period counter only, no time skew mechanism.
  • See Security Considerations in the official RFC.

LICENSE

MIT

About

Implementation of RFC-6238 (Time-Based One-Time Password Algorithm) in Go.

License:MIT License


Languages

Language:Go 100.0%