kencode

Base64

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

Padded RFC 4648 Base64 codec.

Inheritors

Constructors

Base64

constructor(alphabet: CharArray)(source)

Types

Link copied to clipboard
object Default : Base64

Codec with the BASE_64 alphabet.

Properties

alphabet

Functions

decode

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

Decodes input back into bytes.

encode

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

Encodes length bytes of input starting at offset.