// Encoding binary data as a hexstringencodeBase64('0x1234');// Encoding binary data as a Uint8ArrayencodeBase64(new Uint8Array([0x12, 0x34]));// The input MUST be data...encodeBase64('Hello World!!');// ...use toUtf8Bytes for this.encodeBase64(toUtf8Bytes('Hello World!!'));