wrapper for google's hash functions, for ruby