Skip to content

im-neiru/dart-xxh3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dart xxHash Binding

A Dart binding of xxHash.
Provides binding for both 128-bit and 64-bit versions of xxh3 hashing function.

Usage

var xxh3 = Xxh3(); // Create instance of Xxh3

final data = utf8.encode("Holly"); // Convert string data to bytes

final hash64 = xxh3.digestTo64bit(data); // Use xxh3 64-bit version
final hash128 = xxh3.digestTo128bit(data); // Use xxh3 128-bit version

// Print hash bytes
print(hash64); 
print(hash128);