I'm looking for a decent BaseN encoder (with custom charset) in Java, that is not limited by input data size (array of bytes).
Something like this:
But for "unlimited" data length without any unnecessary memory/performance penalty and "BigInteger abuse magic". Simply something that works as standard BASE64 encoders, but universally for any base/charset. Any solution, or idea how to achieve that is welcomed.
Maybe, if someone has experiences with apache BaseNCodec:
It looked promising, however it's an Abstract class, and available implemetations look harder to make, than start from scratch.
I need it for a binary data to custom character set encoder (where the number of characters in the set is mutable,
"ABCDE" = Base5
, "ABCDE-+*/." = Base10
, ...).
Update: The "Base N Codec" from GitHub (above) seems to be buggy, so I used the following code at the end:
"ABCDE" = Base5
,"ABCDE-+*/." = Base10
, ...). – Polymorphism