<html>
<head>
<script src="base64.min.js" type="text/javascript"></script>
<script type="text/javascript">
var bs64 = new Base64();
var decoded = bs64.decode("VEVTVDEyMw==");
var encoded = bs64.encode("TEST123");
console.log('Encoded: ' + encoded);
console.log('Decoded: ' + decoded);
</script>
</head>
<body>
<div id="example"></div>
<script type="text/javascript">
var exmpl = document.getElementById('example');
exmpl.innerHTML = 'Encoded: ' + encoded + '<br />' + 'Decoded: ' + decoded;
</script>
</body>
</html>
|