Window btoa() Method
encode/decode base64 en javascript :
var str = "Hello World!";
var enc = window.btoa(str);
var res = "Encoded String: " + enc;
document.getElementById("demo").innerHTML=res;
et atob() de base64 -> string
permalink -
-
http://www.w3schools.com/jsref/met_win_btoa.asp