DVSecretHash class abstract final

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

debugLastCompared ↔ int
How many characters the last equals examined.
getter/setter pair

Static Methods

equals(String expected, String actual) → bool
Compares expected and actual over the whole of expected, whatever differs and wherever, so the time taken says nothing about how much of a guess was right.
hex(Random random, int bytes) → String
bytes random bytes as lowercase hex.
matches(String expectedHash, String presented) → bool
Whether presented hashes to expectedHash, compared in constant time.
of(String secret) → String
The stored form of secret: lowercase hex SHA-256, 64 characters.
token(Random random, int bytes) → String
bytes random bytes as unpadded URL-safe base64.