Skip to content

bangerlee/ketama_md5_hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ketama_md5_hash

ketama_md5_hash is a md5 digest generator for C and python, it accepts a string and outputs an unsigned int, which could be used as a hash value.

Installation

git clone git://github.com/bangerlee/ketama_md5_hash.git
cd ketama_md5_hash/libketama
make
make install
cd ../python_ketama
python setup.py install

Examples

After the installation, here is the example for C:

cd ketama_md5_hash/libketama 
./ketama_test abc
  The md5 digest for abc is 2555380112

Here is the example for python:

cd ketama_md5_hash/python_ketama
python test.py 
Input the string: abc
  The md5 digest for abc is 2555380112

API

C: ketama_hashi(string);
python: ketama.hashi(string);

License

See the license in the libketama/ketama.c and libketama/md5.c.

About

A md5 digest generator for C and python, subset of libketama

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published