Hacker News new | ask | show | jobs
by jedschmidt 4702 days ago
Gaunt in 128 bytes of JavaScript:

    function(a,b){return a[b="replace"](/./g,a=function(a){return a[1]?String.fromCharCode(parseInt(a,2)):+(a==" ")})[b](/.{7}/g,a)}
I first saw this neat trick in Billy Hoffman's presentation on circumventing automated JavaScript analysis (scroll down to crazy idea #1):

http://www.blackhat.com/presentations/bh-usa-08/Hoffman/Hoff...