Class for encoding a text
Intantiate it passing in a custom TextEncodeInterface or use the default encoder by call Base64TextEncoder.getDefaultEncoder()
Base64TextEncoder encode = new Base64TextEncoder(Base64TextEncoder.getDefaultEncoder());
String en = encode.encode("Man is distinguished, not only by his reason, but by this singular passion from");
Class for decoding a text
Intantiate it passing in a custom TextDecodeInterface or use the default decoder by call Base64TextDecoder.getDefaultdecoder()
Base64TextDecoder decoder = new Base64TextDecoder(Base64TextDecoder.getDefaultDecoder());String d = decoder.decode(en)
Class for encoding binary data. Passing a custom BinaryEncodeInterface or call Base64BinaryEncoder.getDefaultEncoder() to use the default encoder.
Base64BinaryEncoder binaryEncoder = new Base64BinaryEncoder(Base64BinaryEncoder.getDefaultEncoder());binaryEncoder.encode(file);