btoa

external fun btoa(data: String): String(source)

MDN Reference