Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

bling-hashes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bling-hashes

String hash algorithms.

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
269
-19.7%
Maintainers
1
Weekly downloads
 
Created
Source

Bling Hashes

bling-hashes bling-hashes Build Status Coverage Status License Dependency Status

Star at GitHub

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!"); ///< 501511565

Contribution

Thanks to ByVoid. The C++ implementation code was copied from his blog.

You're welcome to make pull requests.

「雖然我覺得不怎麼可能有人會關注我」

Keywords

hash

FAQs

Package last updated on 23 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts