Skip to content

Aesthetically pleasant Base16 encoding and decoding intended for use with short identifiers.

License

Notifications You must be signed in to change notification settings

LableOrg/java-nicerxvi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NicerXVI

Base16 string encoding and decoding intended for use with short user-visible identifiers.

Purpose

Convert byte sequences to and from human readable strings of text made up of a limited set of unambiguous letters. The sixteen letters used are:

x c d f g k m p q r s t v w b z

Vowels are omitted to prevent strings from unintentionally containing words.

Installation

This library is available on Maven Central:

<dependency>
    <groupId>org.lable.oss.nicerxvi</groupId>
    <artifactId>nicerxvi</artifactId>
    <version>1.2</version>
</dependency>

Example usage

byte[] inputByteValue = "TEST1234".getBytes();

String nicerXVIString = NicerXVI.encode(inputByteValue);

// nicerXVIString = "kggkkfkgfcfdfffg";

byte[] outputByteValue = NicerXVI.decode(nicerXVIString);

// Arrays.equals(inputByteValue, outputByteValue) == true

About

Aesthetically pleasant Base16 encoding and decoding intended for use with short identifiers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages