Java Utililty Methods Byte Array to Base32

List of utility methods to do Byte Array to Base32

  1. HOME
  2. Java
  3. B
  4. Byte Array to Base32

Description

The list of methods to do Byte Array to Base32 are organized into topic(s).

Method

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);
...

AltStyle によって変換されたページ (->オリジナル) /