rafialhamd / slash

:key: Fast, efficient hash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slash

Fast, efficient hash

Usage

Slash is a non-cryptographic hash function intended to be used for general purposes. It is highly collision resistant, results in uniformly distributed hashes, and has good avalanche properties.

#include "slash.h"

const unsigned char *key = "Slash";
unsigned long long hash = slash(key, 5);

//-> 0x2EF187C88FB36176

Building

$ git clone https://github.com/kbrsh/slash
$ cd slash
$ make

Support

Support Slash on Patreon to help sustain the development of the project. The maker of the project works on open source for free. If you or your company depend on this project, then it makes sense to donate to ensure that the project is maintained.

License

Licensed under the MIT License by Kabir Shah

About

:key: Fast, efficient hash

License:MIT License


Languages

Language:C 78.7%Language:Python 18.9%Language:Makefile 2.4%