code: public static boolean validatePassword(String password, String goodHash) throws NoSuchAlgorithmException, InvalidKeySpecException {
  
      return validatePassword(password.toCharArray(), goodHash);
    }
docs: Validates a password using a hash.
  
  @param password
  the password to check
  @param goodHash
  the hash of the valid password
  
  @return true if the password is correct, false if not