Skip to content

Instantly share code, notes, and snippets.

@paulll
Last active August 29, 2015 14:13
Show Gist options
  • Save paulll/56bc532ad3c600ece368 to your computer and use it in GitHub Desktop.
Save paulll/56bc532ad3c600ece368 to your computer and use it in GitHub Desktop.
Five-line caesar cipher solver
for (var i=-50; i<50; i++) {
console.log ("String to decode".split('').map(function(e){
return String.fromCharCode(e.charCodeAt(0) + i);
}).join(''));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment