Skip to content

Instantly share code, notes, and snippets.

@jnewman
Created August 16, 2013 00:48
Show Gist options
  • Save jnewman/6246311 to your computer and use it in GitHub Desktop.
Save jnewman/6246311 to your computer and use it in GitHub Desktop.
var offset = 0;
var decodeChar = function (char, on) {
var code = char.charCodeAt() - 64;
var out = '';
while (code-- > 0) {
out += offset++ % 80 === 0 ? '\n' : (on ? '!' : ' ');
}
return out;
};
var decode = function (chars) {
chars = chars.split('');
var out = '';
for (var char = '', i = 0, on = false; char = chars.shift(); on = !on) {
out += decodeChar(char, on);
}
return out;
};
decode('TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBLOFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-WHq!WFs XDt!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment