# non-crypto-hash

> Containing non-crypographic hash functions worked in both browser and Node.js: 1) SuperFastHash; 2) MurmurHash 3

Latest version **0.1.2** (published 2015-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install non-crypto-hash
pnpm add non-crypto-hash
yarn add non-crypto-hash
bun add non-crypto-hash
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-11-02 |
| First published | 2015-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | jo32 |
| Maintainers | jo32 |

## Links

- npm: https://www.npmjs.com/package/non-crypto-hash
- Repository: https://github.com/jo32/non-crypto-hash
- Homepage: https://github.com/jo32/non-crypto-hash#readme
- Issues: https://github.com/jo32/non-crypto-hash/issues
- npm.io page: https://npm.io/package/non-crypto-hash

## Recent versions

- 0.1.2 (latest) — 2015-11-02
- 0.1.1 — 2015-10-28
- 0.1.0 — 2015-10-25

## README

# Non-Cryptographic Hash

This package contains non-crypographic hash functions worked in both browser and Node.js:

1) SuperFastHash
2) MurmurHash 3

## Installation

    npm install non-crypto-hash

## Usage

    var nch = require('non-crypto-hash');
    // var algo = nch.createHash('superfasthash');
    var algo = nch.createHash('murmurhash3');
    console.log(algo.hash('string'));

## API

### SuperFastHash

#### superfasthash.hash(inputString) {...}

create hash of inputString in 32bits hex string.

### MurmurHash3

### MurmurHash3.hash(inputString[, seed]) {...}

alias for `MurmurHash3.x64Hash128`

### MurmurHash3.x86Hash32(inputString[, seed]) {...}

create hash of inputString in 32bits hex string, seed is default to 0.

### MurmurHash3.x86Hash64(inputString[, seed]) {...}

create hash of inputString in 64bits hex string, seed is default to 0. returning value is the lower 64bits of `MurmurHash3.x86Hash128`

### MurmurHash3.x86Hash128(inputString[, seed]) {...}

create hash of inputString in 128bits hex string, seed is default to 0.

### MurmurHash3.x64Hash64(inputString[, seed]) {...}

create hash of inputString in 64bits hex string, seed is default to 0. returning value is the lower 64bits of `MurmurHash3.x64Hash128`

### MurmurHash3.x64Hash128(inputString[, seed]) {...}

create hash of inputString in 128bits hex string, seed is default to 0.

---
_Source: https://npm.io/package/non-crypto-hash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
