Centralized all hashing to HashFunction.java.