Documentation ¶ Overview ¶ Package totp contains the function that generates a TOTP code. Index ¶ func TOTP(key []byte, t time.Time) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func TOTP ¶ func TOTP(key []byte, t time.Time) string TOTP generates a TOTP for the given key at time t, in the manner commonly used by most websites (SHA1-based 6-digit code padded with 0s). This implementation is based on RFC 4226 and RFC 6238. Types ¶ This section is empty. Source Files ¶ View all Source files totp.go Click to show internal directories. Click to hide internal directories.