Skip to main content

Module totp

Module totp 

Source
Expand description

TOTP (RFC 6238) over HMAC-SHA1, and the base32 encoding authenticator apps read secrets in.

Functionsยง

base32
RFC 4648 base32 without padding, as otpauth:// URIs carry secrets.
hotp
The HOTP value (RFC 4226) for counter, zero-padded to digits digits.
totp
The TOTP code (RFC 6238) for the period-second time step containing unix_time.