public void encode(DataOutputStream out, char[] password) throws IOException { authenticate(password); encode(out); }