MichaelXF / js-confuser

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

feat: Generator functions for control flow flattening #104

Open MichaelXF opened 12 months ago

MichaelXF commented 12 months ago

The generator function or function* provides a useful yield expression that can be used to divert control flow. This can be used instead of a break statement as a more versatile option for obfuscating the code.

This would allow Control Flow Flattening to obfuscate code even more than what it can do currently. This could be added to control flow flattening or it's own transformation.