Update Hash.php

Updated to handle via exception for invalid Parameters - error message might need to be more cogent.