Skip to content

A binary-to-text translating utility supporting custom sets of characters

License

Notifications You must be signed in to change notification settings

codebandits/rebaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rebaser

Concourse

Release

Overview

A binary-to-text translating utility supporting custom sets of characters. It's similar to java.util.Base64 but you supply the set of characters which will represent the binary data.

Usage

Rebaser rebaser = new Rebaser();
char[] charset = "abc123".toCharArray();

String encodedData = rebaser.encode("Hog Island".getBytes(), charset);
System.out.println(encodedData); // bacabc11bcb1acaabacbb1a1bc1abcabbc1cbcba

byte[] decodedBytes = rebaser.decode(encodedData, charset);
System.out.println(new String(decodedBytes)); // Hog Island

Installation

Add the JitPack Maven repository to your list of repositories:

repositories {
  ...
  maven { url 'https://jitpack.io' }
}

Add the compile dependency:

dependencies {
  ...
  compile 'com.github.codebandits:rebaser:master-SNAPSHOT'
}

About

A binary-to-text translating utility supporting custom sets of characters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages