Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ceejbot/jumphash
Advanced tools
Readme
Really remarkably trivial node bindings for Google's jump consistent hash.
Tested on nodes 4, 6, and 7. Is probably just fine on node 0.10 too.
npm install --save @ceejbot/jumphash
This module provides one function: jumphash(key, bucketCount)
. key
must be a non-negative integer or a buffer. bucketCount
must be a positive integer (0 is an invalid bucket count).
The return value is a integer in the range [0, bucketCount)
that you can use as you wish. The paper linked above describes the intended data storage use.
var jumphash = require('@ceejbot/jumphash')
assert = require('assert'),
crypto = require('crypto');
var location = jumphash(23102, 16);
assert(location >= 0);
assert(location < 16);
var buffer = crypto
.createHash('md5')
.update('my-string-key-for-some-resource')
.digest();
var location2 = jumphash(buffer, 16);
Only the first 64 bits of the buffer are considered, with the most significant bit first.
ISC
FAQs
an implementation of the jump consistent hash for node
The npm package @ceejbot/jumphash receives a total of 1 weekly downloads. As such, @ceejbot/jumphash popularity was classified as not popular.
We found that @ceejbot/jumphash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.