Function libauthenticator::hotp[][src]

pub fn hotp(
    secret: &str,
    counter: u64,
    algorithm: Algorithm,
    digits: u32
) -> Result<u32>

Performs the HMAC-based One-time Password Algorithm (HOTP) given an RFC4648 base32 encoded secret, and an integer counter.