XXH3 class
This is an implementation of 64-bit XXH3 hash algorithm of xxHash family derived from https://github.com/Cyan4973/xxHash
XXH3 is a new high-performance variant XXHash algorithm that is designed to be fast, with a low memory footprint, and to produce high-quality hash values with good distribution and low collision rates.
One of the main improvements in XXH3 compared to XXHash is its use of a new mixing function that provides better mixing of the input data and results in improved distribution of the resulting hash values.
WARNING: It should not be used for cryptographic purposes.
- Inheritance
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hmac
→ HMAC<
T> -
Available on T, provided by the HMAConBlockHashBase extension
Gets a HMAC instance builder for this algorithm.no setter - name → String
-
The name of this algorithm
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secret
→ List<
int> ? -
final
- seed → int
-
final
Methods
-
bind(
Stream< List< stream) → Stream<int> >HashDigest> -
Transforms the byte array input stream to generate a new stream
which contains a single HashDigest
inherited
-
byteStream(
Stream< int> stream, [int bufferSize = 1024]) → Future<HashDigest> -
Consumes the entire
stream
of byte array and generates a HashDigest.inherited -
cast<
RS, RT> () → StreamTransformer< RS, RT> -
Provides a
StreamTransformer<RS, RT>
view of this stream transformer.inherited -
convert(
List< int> input) → HashDigest -
Process the byte array
input
and returns a HashDigest.inherited -
createSink(
) → XXH3Sink64bit -
Create a HashDigestSink for generating message-digests
override
-
hex(
List< int> input) → String -
Process the byte array
input
and returns a hash in hexadecimal.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pbkdf2(
List< int> salt, {PBKDF2Security security = PBKDF2Security.good, int? iterations, int? keyLength}) → PBKDF2 -
Available on BlockHashBase<
Generate a secret using PBKDF2 hash algorithm.BlockHashSink> , provided by the PBKDF2onBlockHashBase extension -
string(
String input, [Encoding? encoding]) → HashDigest -
Process the
input
string and returns a HashDigest.inherited -
stringStraem(
Stream< String> stream, [Encoding? encoding]) → Future<HashDigest> -
Consumes the entire
stream
of string and generates a HashDigest.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
withSecret(
List< int> secret) → XXH3 - Get an instance of xxh3 with a secret
-
withSeed(
int seed) → XXH3 - Get an instance of xxh3 with an specific seed
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited