@Test public void runTest() { assertEquals("84?3G:B", Base85.base85("HELLO", Mode.ENCODE)); assertEquals("HELLO", Base85.base85("84?3G:B", Mode.DECODE)); }
public static String base85(String input, Mode mode) { String output = ""; if (mode == Mode.ENCODE) { output = encode(input.getBytes()); } if (mode == Mode.DECODE) { output = decode(input); } return output; }
Base85 { public static String base85(String input, Mode mode) { String output = ""; if (mode == Mode.ENCODE) { output = encode(input.getBytes()); } if (mode == Mode.DECODE) { output = decode(input); } return output; } }
Base85 { public static String base85(String input, Mode mode) { String output = ""; if (mode == Mode.ENCODE) { output = encode(input.getBytes()); } if (mode == Mode.DECODE) { output = decode(input); } return output; }  }
Base85 { public static String base85(String input, Mode mode) { String output = ""; if (mode == Mode.ENCODE) { output = encode(input.getBytes()); } if (mode == Mode.DECODE) { output = decode(input); } return output; }  static void main(String[] args); static String base85(String input, Mode mode); static String encode(byte[] payload); static String decode(String chars); }
Base85 { public static String base85(String input, Mode mode) { String output = ""; if (mode == Mode.ENCODE) { output = encode(input.getBytes()); } if (mode == Mode.DECODE) { output = decode(input); } return output; }  static void main(String[] args); static String base85(String input, Mode mode); static String encode(byte[] payload); static String decode(String chars);  }