且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JavaScript混淆器机制

更新时间:2023-12-03 21:57:10

Quote:

是否有可能开发自己的混淆器

Is there any possibility of developing my own obfuscatar

您如何看待现有的混淆器?

How do you think existing obfuscators have been made ?

报价:

有人可以帮助我了解其工作机制(算法)吗

Can Anyone help me with the working mechanisms(algorithms)

这没有记载,有些公司靠出售混淆器谋生,他们没有说他们怎么做.

This not documented, some companies are making a living by selling obfuscators, they don''t say how they do.

报价:

我尝试搜索以找出可用的javascript混淆器.

I Tried searching to find out the mechanism of javascript Obfuscators available.

一些减少JS代码规模的技术具有使代码更难于阅读的副作用.
-删除评论
-删除缩进
-删除不必要的空格
-删除所有行尾(一个JS程序为1行)
-重命名变量和内部函数
仅仅是开始.

Some thecniques that reduce the sier of JS code have the side effect of making the code more difficult to read for human.
- remove comments
- remove indentation
- remove unnecessary spaces
- remove all End Of Lines (a JS program is 1 line)
- renaming variables and internal functions
It is just the beginning.