npm install endpoint-murmurhash3import {niceHash, parseHash} from "endpoint-murmurhash3/niceHash"
Fast JavaScript hashing tools for developers. Generate MurmurHash3 hashes and SHA-256 in esm systems with web crypto used for sha256. Ideal for workers and nodejs apps.
Try the interactive demo first, then explore the source code and npm package. This uses niceHash/mm3_browser.js to help visualize murmur3.
→ Open DemoMurmurHash3 is a fast non-cryptographic hash function designed for speed and good distribution. It is commonly used for hash tables, databases, bloom filters, caches, and data processing systems.
SHA-256 is a cryptographic hash function from the SHA-2 family. Unlike MurmurHash3, it is designed for security applications where collision resistance matters.
Install the package:
npm install endpoint-murmurhash3
Example:
import {
niceHash,
generateSHA256,
generateMM3128,
parseHash
} from "endpoint-murmurhash3/niceHash";
const result = await niceHash(
"example",
"A",
"B",
"C"
);
console.log(result);
const parsed = parseHash(result.no);
console.log(parsed);
console.log(
await generateSHA256("example")
);
console.log(
await generateMM3128("example")
);