Skip to content

Kodak1234/Base64

Repository files navigation

Base 64

Encoding a text

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");

Decoding a text

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)

Encoding a binary data

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);

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages