murmur3 2.0.0 murmur3: ^2.0.0 copied to clipboard
MurmurHash v3 for Dart & Flutter platforms. Supports array and stream data sources, on native and browser environments.
murmur3 #
MurmurHash v3 for Dart & Flutter.
Supports array and stream data sources, on native and browser platforms.
Example #
void main() async {
final hash32 = murmur3a('div200').toHex(32);
print('murmur3a(\'div2000\') = 0x$hash32');
final hash128x64 = murmur3f('div200').toHex(128);
print('murmur3f(\'div2000\') = 0x$hash128x64');
final pkBytes = Stream.fromIterable([0x08, 'div200', 0x00]);
final pkHash = encodeHash((await murmur3a(pkBytes)).toDouble());
print('div200 pk hash = ${pkHash.map((b) => b.toHex(8)).join()}');
}