Nodejs BTOA
Buffer.from('Hello world!', 'binary').toString('base64')
Uptight Unicorn
Buffer.from('Hello world!', 'binary').toString('base64')
var encodedData = btoa(stringToEncode);
const decodedData = atob(encodedData); // decode the string