加密Chrome扩展程序? [英] Encrypt Chrome-extension?

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

问题描述

无论如何,加密Chrome扩展程序不会暴露源代码?

解决方案

您可以使用混淆器来隐藏您的代码。有很多可用的市场。



像Google Closure编译器这样的工具很少,并且大量的在线javascript foruscators在市场上可用。你可以使用任何。但并不保证代码的机密性。任何具有javascript的专家都可以将该代码去混淆。

以下是两种方法:
1.通过Web服务提供您的功能。所以重要的代码驻留在服务器上,扩展将与服务器通信并处理来自服务器的输出。
2.使用NPAPI但它不是一个好方法。

按照我的观点,一个好的策略是尝试给用户一个很好的扩展。如果市场上已经有一些非常棒的产品,那么没有人会试图复制你的插件。试着超越你的竞争对手。



编辑:NPAPI已被弃用。


Anyway to encrypt a Chrome-extension from not exposing the source code?

解决方案

you can hide your code using obfuscator. there are lots of available in market.

there are few tools like Google Closure compiler, and lots of online javascript ofuscators are available in market. you can use any. but it doesn't guarantee the confidentialness of the code. anyone expert with javascript can de-obfuscate that code.

Here are two methods: 1. make your functionality available via web services. so important code reside on server and extension will communicate with the server and will process the output from server. 2. use NPAPI but its not a good method.

As per me a good strategy is to try to give a good extensions to user. if there is already something awesome in market no body will try to copy your addon. try to be ahead of your competitors.

EDIT: NPAPI is deprecated.

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

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