Base64

class Base64

Base64 encode / decode functions

Functions

Link copied to clipboard
open fun decode(string: String): Array<Byte>
Decode a Base64 input with the default alphabet (RFC4648 with '+', '/')
Link copied to clipboard
open fun decodeUrl(string: String): Array<Byte>
Decode a Base64 input with the alphabet safe for URL-s and filenames (RFC4648 with '-', '_')
Link copied to clipboard
open fun encode(data: Array<Byte>): String
Encode an input to Base64 with the default alphabet (RFC4648 with '+', '/')
Link copied to clipboard
open fun encodeUrl(data: Array<Byte>): String
Encode an input to Base64 with the alphabet safe for URL-s and filenames (RFC4648 with '-', '_')