TOTP class
Constructors
-
TOTP(String secret, [ int interval = 30, int digits = 6 ])
-
@param {secret}
@type {String}
@desc random base32-encoded key to generate OTP. [...]
Properties
-
interval
↔ int
-
read / write
-
digits
↔ int
-
read / write, inherited
-
hashCode
→ int
-
The hash code for this object. [...]
read-only, inherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
read-only, inherited
-
secret
↔ String
-
read / write, inherited
Methods
-
now()
→ String
-
Generate the OTP with current time. [...]
-
urlGen(String _issuer, String _type)
→ String
-
Generate a url with TOTP instance. [...]
-
verify(String otp, [ DateTime time ])
→ bool
-
Verifies the OTP passed in against the current time OTP. [...]
-
generateOTP(int input)
→ String
-
When class HOTP or TOTP pass the input params to this
function, it will generate the OTP object with params,
the params may be counter or time. [...]
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString()
→ String
-
Returns a string representation of this object.
inherited
Operators
-
operator ==(dynamic other)
→ bool
-
The equality operator. [...]
inherited