-
-
Save qwIvan/0fdedb8d26b05ec11d26 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 (sInput){ | |
var sOutput=''; | |
for(var i=0,c=sInput.length;i<c;i++){ | |
var nChar=sInput.charCodeAt(i); | |
if(nChar>=33&&nChar<=126){ | |
sTmp=String.fromCharCode(33+(((nChar-33)+47)%94)); | |
sOutput+=sTmp | |
}else{ | |
sOutput+=sInput.charAt(i) | |
} | |
} | |
return sOutput | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment