Support hashing algorithms without mhash() and even hash() extension (#1490076)