Checksum class
Computes SHA-256 checksums for payload integrity.
Constructors
- Checksum()
-
Creates a checksum helper.
const
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
-
compute(
String input) → String -
Computes a SHA-256 hash for the provided
input. -
forPayload(
Map< String, dynamic> payload, SaveCodec codec) → String -
Computes a checksum for a JSON-safe
payloadusingcodec. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyPayload(
{required Map< String, dynamic> payload, required SaveCodec codec, required String expected}) → bool -
Verifies that
payloadmatches theexpectedchecksum.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited