Default
The "base64" encoding specified by RFC 4648 section 4
, Base 64 Encoding.
Uses "The Base 64 Alphabet" as specified in Table 1 of RFC 4648 for encoding and decoding. Encode operation does not add any line separator character. Decode operation throws if it encounters a character outside the base64 alphabet.
The character '='
is used for padding.
Since Kotlin
1.8Properties
The encoding specified by RFC 2045 section 6.8
, Base64 Content-Transfer-Encoding.
The "base64url" encoding specified by RFC 4648 section 5
, Base 64 Encoding with URL and Filename Safe Alphabet.
Functions
Decodes symbols from the specified source array or its subrange and writes resulting bytes into the destination array. Returns the number of bytes written.
Decodes symbols from the specified source char sequence or its substring and writes resulting bytes into the destination array. Returns the number of bytes written.
Encodes bytes from the specified source array or its subrange and writes resulting symbols into the destination array. Returns the number of symbols written.
Encodes bytes from the specified source array or its subrange and appends resulting symbols to the destination appendable. Returns the destination appendable.