Hash class abstract

An interface for cryptographic hash functions.

Every hash is a converter that takes a list of ints and returns a single digest. When used in chunked mode, it will only ever add one digest to the inner Sink.

Inheritance

Constructors

Hash()
const

Properties

blockSize int
The internal block size of the hash in bytes.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Stream<List<int>> stream) Stream<Digest>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(List<int> input) Digest
Converts input and returns the result of the conversion.
override
fuse<TT>(Converter<Digest, TT> other) Converter<List<int>, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<Digest> sink) ByteConversionSink
Starts a chunked conversion.
override
toString() String
A string representation of this object.
inherited

Operators

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