https://github.com/mstdokumaci/string-hash-64
Fast string hashing function for Node.JS, generates 64 bit hashes.
https://github.com/mstdokumaci/string-hash-64
64bit djb2 hash nodejs string
Last synced: 3 months ago
JSON representation
Fast string hashing function for Node.JS, generates 64 bit hashes.
- Host: GitHub
- URL: https://github.com/mstdokumaci/string-hash-64
- Owner: mstdokumaci
- License: mit
- Created: 2017-08-17T06:26:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T18:05:02.000Z (over 3 years ago)
- Last Synced: 2025-10-12T07:11:41.431Z (9 months ago)
- Topics: 64bit, djb2, hash, nodejs, string
- Language: JavaScript
- Size: 7.81 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# string-hash-64
[](https://travis-ci.org/mstdokumaci/string-hash-64)
[](http://standardjs.com/)
[](https://badge.fury.io/js/string-hash-64)
An improved version of djb2. Generates 64 bit integer hashes. Returns a number between 0 and 18446744073709552000.
Repository includes test for hashing 65 million strings with zero collisions. That's 400k+ less than what you get with djb2.
Performs as fast as djb2, only the generated hashes will consume almost twice memory in size.