Skip to content

Instantly share code, notes, and snippets.

@indigo6alpha
Last active January 17, 2018 09:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indigo6alpha/5585dc1d4ea22c17ff2882c630915243 to your computer and use it in GitHub Desktop.
Save indigo6alpha/5585dc1d4ea22c17ff2882c630915243 to your computer and use it in GitHub Desktop.
Decode entered Base64 string
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