MCPcopy
hub / github.com/rsc/2fa / totp

Function totp

main.go:343–345  ·  view source on GitHub ↗
(key []byte, t time.Time, digits int)

Source from the content-addressed store, hash-verified

341}
342
343func totp(key []byte, t time.Time, digits int) int {
344 return hotp(key, uint64(t.UnixNano())/30e9, digits)
345}

Callers 1

codeMethod · 0.85

Calls 1

hotpFunction · 0.85

Tested by

no test coverage detected