MichaelXF / js-confuser

JS-Confuser is a JavaScript obfuscation tool to make your programs *impossible* to read.
https://js-confuser.com
MIT License
242 stars 37 forks source link

[Feature request] ZeroWidth combined with Mangled #148

Open Ben-Mack opened 1 month ago

Ben-Mack commented 1 month ago

ZeroWidth is really interesting feature, the first time i see it, a lot of editor doesn't even show these characters. But currently it using all default JS protected var (like if, for, of...) which look too suspicious because it should be syntax error. I suggest if we combine it with something like mangled, the code looks more naturally, just like a normally minifed code, when looking through the codebase, it gonna be much less suspicious. (I don't want it looks suspicious partly because I don't obfuscate whole codebase to avoid perf problem, i just obfuscate some important part, so I prefer to blend it in with other minified code) Also, ZeroWidthMangled mode should also reduce file size compared to pure ZeroWidth I think.

MichaelXF commented 2 weeks ago

150

Same issue. I'm open to add a ZeroWidthMangled mode if you have an implementation. Just send it as a reply or create PR.