class CrOTP::HOTP

Included Modules

Defined in:

crotp/hotp.cr

Constructors

Instance Method Summary

Instance methods inherited from module CrOTP::OTP

base32_secret : String base32_secret

Constructor Detail

def self.new(secret : String, digits : Int = 6) #

[View source]

Instance Method Detail

def authenticator_uri(initial_counter : Int, issuer : String, user : String) : String #

[View source]
def authenticator_uri(initial_counter : Int, issuer : String) : String #

[View source]
def generate(counter : Int) : String #

[View source]
def verify(token : String, counter : Int, allowed_drift : Int = 0) : Bool #

[View source]