Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
11 fast hash functions for general non-cryptographic use.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
LICENSE.txt
README.md
Rakefile

README.md

General Purpose Hash Functions Gem

hashfunctions is a Ruby gem which implements 11 fast hash functions for general purpose non-cryptographic use implemented originally by Arash Partow. Part of this library is the native C hashfunctions-extension extension which is used if it's installed as gem.

Some example:

require "general-hash-functions"
hash = GeneralHashFunctions::djbhash("some string")
# will return the 395673328

See description of all contained functions at Arash Partow's page: http://www.partow.net/programming/hashfunctions/index.html#AvailableHashFunctions

Copyright

Copyright © 2002 Arash Partow. Copyright © 2012 Martin Kozák. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.