A library to satisfy the requirements of Scramble ID, it provides by default HOTP settings that satisfy the google authenticator protocol, while being customizable enough to satisfy the needs of the more esoteric parts of scramble ID and the software that uses it.
Usage is done by chaining any customization onto the intialization function:
The simplest version, that will work with google authenicator is:
hotp := otp.NewHOTP("seed-value")
And customization is done with chained functions:
hotp := otp.NewHOTP("seed-value").Encoding(sha256.New)