Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/kruithne/node-jenkins96
- Owner: Kruithne
- Created: 2017-10-19T13:52:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-22T22:45:58.000Z (about 7 years ago)
- Last Synced: 2024-10-07T07:59:17.431Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```