Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 869 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 869 Bytes

Multiverse OS Logo

Scramble ID: OTP (HOTP, and TOTP) Library

URL multiverse-os.org

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

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)