如何保护Javascript代码? [英] How to secure the Javascript Code?

查看:140
本文介绍了如何保护Javascript代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

如何防止你的javascripts被盗,被复制和查看?

保护javascript代码的最佳方法是什么?让它变得难以理解并且肯定会窃取它...我知道它不可能100%保护它,因为它的客户端和客户端可以看到它的所有代码..但我需要尽可能地努力。 ..

What is the best way to secure the javascript code & make it hard to understand it and for sure steal it... I know that its impossible to secure it 100% since its client side and all the code the client can see it.. But I need to make it as hard as possible...

推荐答案

你所能做的只是缩小和混淆它。

All you can do is minify and obfuscate it.

以下是免费混淆器,周围有几个。

这篇关于如何保护Javascript代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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