Guest User

Untitled

a guest
Jan 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. try {
  2. var sText = prompt("Enter base64 encoded string: ");
  3. if(sText !== null)
  4. {
  5. var decodedText = atob(sText);
  6. console.log(prompt("Base64 decoded string:", decodedText));
  7. }
  8. } catch(e) {
  9. alert(e.message);
  10. }
Add Comment
Please, Sign In to add comment