The Hash() function does everything I want.