Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- var sText = prompt("Enter base64 encoded string: ");
- if(sText !== null)
- {
- var decodedText = atob(sText);
- console.log(prompt("Base64 decoded string:", decodedText));
- }
- } catch(e) {
- alert(e.message);
- }
Add Comment
Please, Sign In to add comment