tuweni / org.apache.tuweni.io / Base64

Base64

class Base64 (source)

Utility methods for encoding and decoding base64 strings.

Functions

decode

Decode a base64 encoded string to bytes.

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

decodeBytes

Decode a base64 encoded string to a byte array.

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

encode

Encode bytes to a base64 encoded string.

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

encodeBytes

Encode a byte array to a base64 encoded string.

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