Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
CrOTP::HOTP
Inherits
CrOTP::OTP
<
Reference
<
Object
Constructors
new
(secret :
String
, digits :
Int
= 6)
Source
Instance methods
authenticator_uri
(initial_counter :
Int
, issuer :
String
, user :
String
) :
String
Source
authenticator_uri
(initial_counter :
Int
, issuer :
String
) :
String
Source
generate
(counter :
Int
) :
String
Source
verify
(token :
String
, counter :
Int
, allowed_drift :
Int
= 0) :
Bool
Source