Algorithm enum

The HMAC-based One-time Password (HOTP) algorithm.

Inheritance

Constructors

Algorithm(Hash hash, int length)
Create a new Algorithm.
const

Values

sha1 → const Algorithm

The SHA1 algorithm.

const Algorithm(crypto.sha1, 20)
sha256 → const Algorithm

The SHA256 algorithm.

const Algorithm(crypto.sha256, 32)
sha512 → const Algorithm

The SHA512 algorithm.

const Algorithm(crypto.sha512, 64)

Properties

hash → Hash
The algorithm crypto.Hash.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
length int
The algorithm bytes length.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
repeat(List<int> secret) List<int>
Repeat the secret key to the algorithm bytes length.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<Algorithm>
A constant List of the values in this enum, in order of their declaration.