tuweni / org.apache.tuweni.io / Base32

Base32

class Base32 (source)

Utility methods for encoding and decoding base32 strings.

Functions

decode

Decode a base32 encoded string to bytes.

static fun decode(b32: String!): Bytes!

decodeBytes

Decode a base32 encoded string to a byte array.

static fun decodeBytes(b32: String!): ByteArray!

encode

Encode bytes to a base32 encoded string.

static fun encode(bytes: Bytes!): String!

encodeBytes

Encode a byte array to a base32 encoded string.

static fun encodeBytes(bytes: ByteArray!): String!