Djb2a Save

DJB2a non-cryptographic hash function

Project README

djb2a

DJB2a non-cryptographic hash function

DJB2a has good distribution and collisions are rare.

Install

$ npm install djb2a

Usage

import djb2a from 'djb2a';

djb2a('🦄🌈');
//=> 1484783307

It returns the hash as a positive integer.

  • fnv1a - FNV-1a non-cryptographic hash function
  • sdbm - SDBM non-cryptographic hash function
Open Source Agenda is not affiliated with "Djb2a" Project. README Source: sindresorhus/djb2a
Stars
33
Open Issues
1
Last Commit
3 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating