0.0
No commit activity in last 3 years
No release in over 3 years
11 fast hash functions for general purpose non-cryptographic use implemented originally by Arash Partow. Uses the C extension if appropriate gem is available.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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 – 2015 Martin poljak.
See LICENSE.txt for further details.