Skip to main content

totp

Function totp 

Source
pub fn totp(secret: &str, now: i64) -> Option<String>
Expand description

The one-time code now (RFC 6238; RFC 4226 for the truncation): from a base32 secret, an otpauth://totp/… address (its digits, period and SHA-1, SHA-256 or SHA-512), or Steam’s five characters.