public static boolean validatePassword(String password,String correctHash) throws NoSuchAlgorithmException, InvalidKeySpecException {
  return validatePassword(password.toCharArray(),correctHash);
}

public static boolean validatePassword ( String password , String correctHash ) throws NoSuchAlgorithmException , InvalidKeySpecException { return validatePassword ( password . toCharArray ( ) , correctHash ) ; }
validates a password using a hash .
