View Source ExOtp.Hotp (ExOtp v0.0.1)

Module for the HMAC based One-time Password algorithm.

Link to this section Summary

Link to this section Types

@type t() :: %ExOtp.Hotp{base: ExOtp.Base.t(), initial_count: Integer.t()}

Link to this section Functions

@spec at(t(), integer()) :: no_return() | String.t()

Callback implementation for ExOtp.Behaviour.at/2.

Link to this function

new(initial_count, secret)

View Source
@spec new(integer(), String.t()) :: t()

Callback implementation for ExOtp.Behaviour.new/2.

Link to this function

provision_uri(hotp, label, opts \\ [])

View Source
@spec provision_uri(t(), String.t(), keyword()) :: String.t()

Callback implementation for ExOtp.Behaviour.provision_uri/3.

Link to this function

valid?(hotp, otp, counter)

View Source
@spec valid?(t(), String.t(), integer()) :: boolean()

Callback implementation for ExOtp.Behaviour.valid?/3.

@spec validate(t()) :: no_return() | t()

Callback implementation for ExOtp.Behaviour.validate/1.