The General Hash Function Algorithm library contains implementations for a series of commonly used additive and rotative string hashing algorithm in the Object Pascal, C and C++, Java, Python and Ruby programming languages
For more information please visit:
http://www.partow.net/programming/hashfunctions/index.html