btoa() - Encodes a string in base64 format
btoa ( string )
string - The string to be encoded
Returns the encoded string
btoa('use javascript btoa to encode data in base64 format')
dXNlIGphdmFzY3JpcHQgYnRvYSB0byBlbmNvZGUgZGF0YSBpbiBiYXNlNjQgZm9ybWF0