View Source ExOtp.Base (ExOtp v0.0.1)

Base file containing common functions for generating the One-time Password algorithms.

Link to this section Summary

Functions

Function to generate the OTP, given an input.

Function to validate the attributes for the Base struct.

Link to this section Types

@type t() :: %ExOtp.Base{digest: atom(), digits: Integer.t(), secret: String.t()}

Link to this section Functions

Link to this function

generate_otp(base, input)

View Source
@spec generate_otp(t(), integer()) :: no_return() | String.t()

Function to generate the OTP, given an input.

Function to validate the attributes for the Base struct.