const encoded = window.btoa('Alireza Dezfoolian'); // encode a string const decoded = window.atob(encoded); // decode the string