Created
January 20, 2019 16:50
-
-
Save zmallen/5d108d219dc9c2c2980870c27a0c38aa to your computer and use it in GitHub Desktop.
05
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
function isASCII(str) { | |
return /^[\x00-\x7F]*$/.test(str); | |
} | |
for(d in data) { | |
var m = ""; | |
for(var w=0,c="rozMWeXaXY";w<c.length;w++) { | |
m=m+String.fromCharCode(c.charCodeAt(w)-d.charCodeAt(w%2)); | |
} | |
if (isASCII(m)) { | |
console.log(m); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment