Skip to content

Instantly share code, notes, and snippets.

@PAEz
Created May 24, 2014 15:57
Show Gist options
  • Save PAEz/bba206f63c8aeeeea7ea to your computer and use it in GitHub Desktop.
Save PAEz/bba206f63c8aeeeea7ea to your computer and use it in GitHub Desktop.
function dyslexia(string){return String.fromCharCode.apply(this,string.split('').map(function(a){return a.charCodeAt()^255;}))}
var a = "{lives:3}";
var z = dyslexia(a);
a == dyslexia(z);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment