🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

int32-fnv1a

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

int32-fnv1a

A 32 bit FNV-1a hash algorithm implementation that takes an Int32 as an input.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

A 32 bit FNV-1a hash algorithm implementation for hashing Int32 values (rather than Strings). The output it's also a Int32.

Usage


var assert = require('assert');
var hash = require('int32-fnv1a'),

assert.ok(
  hash(0xe04d9fcb) === 0,
  'The hash did not return the expected value'
);
/**
 * If you are wondering why the result of this is 0
 * visit this page: http://isthe.com/chongo/tech/comp/fnv/
 * and look for the following text: `FNV32_1a(e0 4d 9f cb)`
 */

Installation

With npm:

npm install --save int32-fnv1a

With git:

git clone git://github.com/josepot/int32-fnv1a.git

License

MIT license.

Keywords

hash

FAQs

Package last updated on 25 Jul 2016

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