[][src]Trait libauthenticator::OTP

pub trait OTP {
    fn compute(&self, counter: u64) -> Result<String>;
}

Required methods

fn compute(&self, counter: u64) -> Result<String>

Loading content...

Implementors

impl OTP for Account[src]

impl OTP for HOTP[src]

fn compute(&self, counter: u64) -> Result<String>[src]

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

impl OTP for Steam[src]

impl OTP for TOTP[src]

fn compute(&self, counter: u64) -> Result<String>[src]

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

Loading content...