java.lang.Object
org.minidns.util.Base32
Minimal Base32 encoder utility class. Provides basic Base32 encoding functionality using Base32 alphabet with padding.
Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic StringencodeToString(byte[] bytes) Encodes the given byte array to a Base32 string.
Field Details
ALPHABET
PADDING
Padding appended to reach a whole quantum.- See Also:
Constructor Details
Base32
private Base32()Do not allow to instantiate Base32
Method Details
encodeToString
Encodes the given byte array to a Base32 string.- Parameters:
bytes- the byte array to encode- Returns:
- the Base32 encoded string