Base64Utils

Functions

Link copied to clipboard

Decodes the Base64 encoded string into a byte array.

Link copied to clipboard

Converts a Base64 encoded string to a URL-safe Base64 encoded string.

Link copied to clipboard
fun randomBase64(length: Int, useUrlEncoder: Boolean = false): String

Generates a random Base64-encoded string of the specified length.

Link copied to clipboard

Encodes the contents of the ByteArray into a Base64 encoded string.

Link copied to clipboard

Converts a URL-safe Base64 encoded string to a standard Base64 encoded string.