Ruby wrapper for Hashing functions