如何保护Chrome扩展 [英] How protect chrome extension

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

问题描述

Chrome扩展程序已打包到zip存档。安装完成后,它将安装在文件夹上,用户可以访问它。此外,他可以重写扩展名,甚至克隆到新的扩展名。



我如何保护用户修改和克隆的扩展?
我发现dll文件的可能性(可以编译) - 但它不是很好。

解决方案

前提似乎很简单。默认情况下,浏览器解释HTML / Javascript,与页面一起运行的chrome扩展也是如此。

一种方法是混淆你的javascript代码,或者依赖NPAPI编译的二进制插件,或者使用NaCL


Chrome extension is packed to zip archive. After setup it is installed on folder and user can access to it. Also he can rewrite extension and even clone to new extension.

How i can protect extension from user modifications and cloning? I find possibility for dll files (can be compiled) - but it is not very nice.

解决方案

The premise seems to be simple. By default browser interprets HTML/Javascript, so are the chrome extensions which run along with the page.

One way is to obfuscate your javascript code , or rely on NPAPI compiled-binary plugins, or use NaCL

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

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