Last active
January 17, 2018 09:35
-
-
Save indigo6alpha/5585dc1d4ea22c17ff2882c630915243 to your computer and use it in GitHub Desktop.
Decode entered Base64 string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment