GLib.base64_encode

function base64_encode(data: ByteArray): String {
    // Gjs wrapper for g_base64_encode()
}
  

Encode a sequence of binary data into its Base-64 stringified representation.

Since 2.12

data

the binary data to encode

Returns

a newly allocated, zero-terminated Base-64 encoded string representing data. The returned string must be freed with GLib.free.