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()}');
}
Libraries
- murmur3
- Mummur3 library