kencode

Base64

open class Base64(val alphabet: CharArray) : ByteEncoding(source)

RFC 4648–compatible Base64 encoder/decoder.

Inheritors

Constructors

Base64

constructor(alphabet: CharArray)(source)

Types

Link copied to clipboard
object Default : Base64

Default Base64 instance using the standard BASE_64 alphabet.

Properties

alphabet

Functions

decode

open override fun decode(input: CharSequence): ByteArray(source)

Decode an encoded string back into the original bytes.

encode

open override fun encode(input: ByteArray, offset: Int = 0, length: Int = input.size - offset): String(source)

Encode the given byte range into a text representation.