HOTP class

An HMAC-based One-Time Password (HOTP) algorithm implementation derived from rfc4226.

Inheritance

Constructors

HOTP.new(List<int> secret, {int digits = 6, required List<int> counter, BlockHashBase<BlockHashSink> algo = sha1, String? label, String? issuer})
Creates an instance of the HOTP class with the specified parameters.

Properties

algo MACHashBase<HashDigestSink>
The underlying MAC algorithm
final
counter List<int>
The counter value
final
digits int
The number of digits in the generated OTP
finalinherited
hashCode int
The hash code for this object.
no setterinherited
issuer String?
finalinherited
label String?
finalinherited
name String
The algorithm name
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret List<int>
The secret key
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
value() int
Generates the next OTP value
override
valueString() String
Returns the next OTP value as string
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited