Hotp

Type Alias Hotp 

Source
pub type Hotp = Otp<Counter>;
Expand description

HMAC-based one-time passcode

Uses a counter to generate the passcode. The counter is incremented after a passcode is generated.

Aliased Type§

pub struct Hotp { /* private fields */ }

Implementations§

Source§

impl Hotp

Source

pub fn new(key: String, initial_count: u64, length: u32) -> Self

Get a HOTP generator with the given key, initial count, and which generates passcodes of length.