You are here: Home > Webmaster & Developer

How to encrypt and protect the source code of your Chrome Extensions?

October 22, 2012 05:26 PDT

Chrome Extensions are small programs that can enhance the functionality of Google Chrome browser. You can develop extensions using web technologies such as HTML5, CSS, and JavaScript. If you are a developer, you may want to know how to encrypt and protect Chrome Extensions. There are some ways:

1. Obfuscate your JavaScript codes.

There are many JavaScript obfuscator online. I recommend Google Closure. The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.

Note: JavaScript obfuscator doesn't guarantee the confidentialness of the code. anyone expert with JavaScriptcan de-obfuscate that code.

2. Make your functionality available via web services.

The important code reside on server and extension will communicate with the server and will process the output from server. There are many technologies to communicate with server in JavaScript such as AJAX, JSON, etc.

Do you have other ways to protect Chrome Extensions? Please leave your comments there.



#1  posted on December 29, 2012 09:16 PST
Just installed the plgiun, but after using it for a while i get kicked of google. Google tells me that my network is sending automatic request and therefor i have to type in a captha for every search i do This problem only occurs when i have Google Chrome running.

#2  posted on April 11, 2013 10:20 PDT
Multi wonderful and I liked

#3  posted on July 04, 2013 05:54 PDT
thanks for the sharing

#4  posted on July 11, 2014 23:40 PDT
Just put in the plgiun, yet soon after deploying it for quite a while we find kicked connected with search engines. Google informs me in which our network is mailing automatic request and consequently i need to enter some sort of captha for every single lookup i This matter simply takes place as i have Google Opera running.
http://www.activ8hologramevents.com/portfolio/34-nita-ambani-50th-birthday-hologram-show.html

Leave your comment
If you want to leave your comment on this article, simply fill out the next form:
Name: * Requirement
E-mail: Optional (won't be published)
Website / Blog: Optional
Are you a human? For anti spammer, please calculate following expression:
5 x 1 + 1 = * Requirement
Comment:
* Requirement
You can use these tags:
[b] Text [/b]: Bold text
[quote] Text [/quote]: Quote text