tuweni / org.apache.tuweni.io / Base64URLSafe

Base64URLSafe

class Base64URLSafe (source)

Utility methods for encoding and decoding base64 URL safe 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!