This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Base64 { | |
private static final String tbl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
public static byte[] encode(String string) { | |
return encode(string, false); | |
} | |
public static byte[] encode(byte[] data) { | |
return encode(data, false); | |
} |