发布VS项目后加密所有js文件 [英] Encrypting all js files after publishing VS project

查看:727
本文介绍了发布VS项目后加密所有js文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



发布VS项目后有没有办法加密解决方案中的js文件?

我希望以加密格式查看所有js文件阻止人们观看。

提前致谢。



问候,

Soumya



我尝试了什么:



我使用免费的Javascript Obfuscator - 保护JavaScript代码不被窃取和缩小 [ ^ ]

但这不是一个合适的解决方案,因为它需要通过手动和辅助服务来完成。

Hi,
Is there any way to encrypt the js files in the solution after publishing the VS project?
I want to see all js files in encrypted format to prevent people from viewing.
Thanks in advance.

Regards,
Soumya

What I have tried:

I used Free Javascript Obfuscator - Protects JavaScript code from stealing and shrinks size[^]
but this is not a proper solution since it needs to be done by manually and also paided service.

推荐答案

您无法加密它们,因为浏览器无法解密它们。混淆器使得代码更难以被人类阅读而不会影响它们的工作方式,因此它确实是最好的选择。如果你再搜索一下,那里有免费的。
You can't encrypt them as the browser can't decrypt them. Obfuscators make the code much harder\impossible to read by a human without affecting how they work so it's the best option really. There are free ones out there if you search some more.


这篇关于发布VS项目后加密所有js文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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