Bling Hashes


String hash algorithms for node.js.
Installation
$ npm install --save bling-hashes
Introduce
There are 8 algorithms so far.
The benchmark, performance and implementation can be referenced here (各种字符串Hash函数比较).
Usage
First you should require this package.
var bling = require("bling-hashes");
And then you can pass any string to functions (the same name as algorithms, in lowercase).
Eg.
var hash = bling.bkdr("Hello world!");
Contribution
Thanks to ByVoid. The C++ implementation code was copied from his blog.
You're welcome to make pull requests.
「雖然我覺得不怎麼可能有人會關注我」