List of utility methods to do Byte Array to Base32
String | byteArrayToBase32(byte[] data) Converts a byte array to Base32 encoding. String result = ""; if (data.length % 5 != 0) { return result; byte[] bits = new byte[data.length * 8]; for (int i = 0; i < data.length; i++) { bits[i * 8] = (byte) ((data[i] & 0x80) >> 7); bits[i * 8 + 1] = (byte) ((data[i] & 0x40) >> 6); ... |