Expose the getHash function