如何加密或保护Javascript文件或源? [英] How to encrypt or protect Javascript file or source?

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

问题描述


专家,



我把 Javascript 放入 JS 文件中,在HTML文件中提到它。



此Javascript包含敏感度信息
,例如

下一页路径和文件名,

一些结果将存储在数组中,

和Logic。



我认识的人可以通过选择查看源代码或通过另存为页面选项下载此JS文件来获取此JS文件信息。所以



如何保护JS文件来源?




任意想法将不胜感激!:thumbsup:



谢谢,

Imdadhusen

解决方案

< blockquote>我认为不可能限制JS文件下载,你可以有另一个备用选项来存储敏感数据而不是JS。



参见THIS [ ^ ]主题可能对您有用。



投票 接受答案 如果有帮助。


授予该文件夹的读取权限。



您可以使用以下链接



保护JavaScript代码不被窃取和缩小尺寸





http://www.javascrip tobfuscator.com/

Hi Experts,

I put a Javascript into a JS file,and refered it in a HTML file.

This Javascript includes sensitivity information
such as the
Next page Path and File Name,
some result that will be stored in Array,
and Logic.

I know people can get this JS file information by choosing View Source Code or Download this JS file via Save As page option. so

How do i protect the JS file source?


Any idea will be appreciated!:thumbsup:

Thanks,
Imdadhusen

解决方案

I Think it's not possible to restrict JS file from downloading, You can have another alternate option to store sensitive data rather then JS.

See THIS[^] thread which might be useful for you.

Please vote and Accept Answer if it Helped.


Give read permission on that folder.
or
you can use following link

Protects JavaScript code from stealing and shrinks size


http://www.javascriptobfuscator.com/


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

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