如何通过页面源中的视图将javascript代码转换为人类不可读的格式 [英] how to convert javascript code into human unreadable format by view in page source

查看:90
本文介绍了如何通过页面源中的视图将javascript代码转换为人类不可读的格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户点击在任何浏览器中的页面源中查看时,如何将javascript代码转换为人类不可读的格式。

how to convert javascript code into human unreadable format when user clicks to view in page source in any browser.

推荐答案

您可以使用称为缩小的技术。它将减小JS文件的大小,也使其难以阅读,而不是不可能。搜索谷歌的js minify,你会找到工具来做。



你也可以获得混淆工具,如果你搜索JS和混淆,这将使它成为比缩小意愿更难以遵循。
You can use a technique called minifying. It will reduce the size of your JS file and also make it hard to read, not impossible. Search google for js minify and you'll find tools to do it.

You can also get obfuscation tools if you search for JS and obfuscation as well which will make it more difficult to follow than minifying will.


引用:

不可读

无法读取,更难以阅读。

最终你的浏览器必须阅读JS代码,这就是为什么不可读是不可能的。



难以阅读:

如解决方案1中所示,缩小混淆是使源代码更难以阅读的两种技术。 />


反向:

因为有些工具可以让代码难以阅读,其他工具使它们更容易阅读。此操作称为美化



Google将为您提供大量链接。

Unreadable is not possible, more difficult to read is possible.
Ultimately your browser will have to read the JS code, that's why "unreadable" is impossible.

Difficult to read:
As indicated in solution 1, minifying and obfuscation are 2 techniques to make source code more difficult to read.

And reverse:
as there are tools to make code difficult to read, other tools make them easier to read. This operation is called beautifier.

Google will give you plenty of links.


这篇关于如何通过页面源中的视图将javascript代码转换为人类不可读的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆