Answers for "decode base64 body javascript"

1

js decode base64

let str = 'bmltZXNoZGV1amEuY29t';
let buff = new Buffer(str, 'base64');
let base64ToStringNew = buff.toString('utf8');
Posted by: Guest on March-25-2022
-1

javascript base64 decode

// Define the string
var string = 'Hello World!';

// Encode the String
var encodedString = btoa(string);
console.log(encodedString); // Outputs: "SGVsbG8gV29ybGQh"

// Decode the String
var decodedString = atob(encodedString);
console.log(decodedString); // Outputs: "Hello World!"
Posted by: Guest on November-14-2020

Code answers related to "decode base64 body javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language