aemkei / jsfuck

Write any JavaScript with 6 Characters: []()!+
jsfuck.com
Do What The F*ck You Want To Public License
8.12k stars 672 forks source link

Is it possible to decrypt a jsfucked code? #47

Closed fritx closed 8 years ago

fritx commented 8 years ago

Any method is good to know. I'm considering using this in production env.

babakness commented 8 years ago

Suppose a string "foobar" has the encoded string.

  1. Remove the last () from foobar
  2. foobarEval = eval(foobar)
  3. console.log(String(foobarEval))
aemkei commented 8 years ago

@fritx Do NOT use this in production! You should consider this project as educational. It is quite easy to decrypt, as @babakness shows.

fritx commented 8 years ago

Ah yes! Didn't know that. Thanks guys.

FlorianWendelborn commented 8 years ago

I think now would be a good time to close this issue. :)