Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Encoding and Decoding Base64 Strings in Node.js

'use strict';

let data = 'stackabuse.com';
let buff = new Buffer(data);
let base64data = buff.toString('base64');

console.log('"' + data + '" converted to Base64 is "' + base64data + '"');
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #Encoding #Decoding #Strings
ADD COMMENT
Topic
Name
1+5 =