This package contains non-crypographic hash functions worked in both browser and Node.js:
- SuperFastHash
- MurmurHash 3
npm install non-crypto-hash
var nch = require('non-crypto-hash');
// var algo = nch.createHash('superfasthash');
var algo = nch.createHash('murmurhash3');
console.log(algo.hash('string'));
create hash of inputString in 32bits hex string.
alias for MurmurHash3.x64Hash128
create hash of inputString in 32bits hex string, seed is default to 0.
create hash of inputString in 64bits hex string, seed is default to 0. returning value is the lower 64bits of MurmurHash3.x86Hash128
create hash of inputString in 128bits hex string, seed is default to 0.
create hash of inputString in 64bits hex string, seed is default to 0. returning value is the lower 64bits of MurmurHash3.x64Hash128
create hash of inputString in 128bits hex string, seed is default to 0.