kencode

Base64Url

URL- and filename-safe variant of Base64 using the BASE_64_URL alphabet.

Properties

Link copied to clipboard

The 64-character alphabet used to map 6-bit groups to characters.

Functions

Link copied to clipboard
open override fun decode(input: CharSequence): ByteArray

Decode an encoded string back into the original bytes.

Link copied to clipboard
open override fun encode(input: ByteArray, offset: Int = 0, length: Int = input.size - offset): String

Encode the given byte range into a text representation.