Module otpauth::hotp

source ·
Expand description

Two-step verfication of HOTP algorithm.

Example

extern crate otpauth;

fn main() {
    let auth = otpauth::HOTP::new("python");
    let code = auth.generate(4);
    assert!(auth.verify(code, 0, 100));
}

Structs

Two-step verfication of HOTP algorithm.