Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kruithne/node-jenkins96

Implementation of the Jenkins96 hashing algorithm by Bob Jenkins for Node.
https://github.com/kruithne/node-jenkins96

Last synced: about 2 months ago
JSON representation

Implementation of the Jenkins96 hashing algorithm by Bob Jenkins for Node.

Awesome Lists containing this project

README

        

# Jenkins96
This package provides an implementation of the Jenkins96 hashing algorithm (by Robert John Jenkins Junior) for node.js

## Disclaimer
- This was built to produce the same hashes used by World of Warcraft, may differ from spec.
- This does not perform fast. Do not use in important/time-sensitive environments.
- The code is not optimal at all; feel free to contribute improvements!

## Dependancies
- ES6 Support (Node 6+)
- [long](https://www.npmjs.com/package/long) - Used for computing the 64-bit output hash.
- [int32](https://www.npmjs.com/package/int32) - Allows native int32 usage in Node for overflowing.

## Installing
```
npm install jenkins96
```

## Usage
```javascript
const jenkins96 = require('jenkins96');

jenkins96('Earth, wind and fire; heed my call!');
// -> 5429095822829162652
```