encode

fun encode(bytes: ByteArray, offset: Int = 0, length: Int = bytes.size - offset): String

Encode bytes to an RFC 4648 base32 string (uppercase, =-padded).

Parameters

offset

start of the sub-range to encode (default 0)

length

number of bytes to encode (default: to end of array)