some of the more common uses of hash functions
Algorithm for calculate string's hash value with pure Javascript.