0

If I put javascript into a chrome application (CRX) will the code be compiled or in any way hidden from view? At least the crx file seems binary, but is it easily reverse engineered? Does chrome in some way "unpack" it such that a user could easily access the javascripts?

MW

Matt Welander
  • 8,234
  • 24
  • 88
  • 138

1 Answers1

0

CRX is essentially a ZIP file (with some extra cryptographic integrity signature).

Once installed, it will be almost no different from the unpacked extension /app that was used to produce it - it will reside in the Chrome profile folder. The code will be in the open and fully accessible from the same debugging/development tools as you used to develop it.

There is abosolutely nothing to stop someone from copying/modifying the extension/app for their needs.

You can minify/obfuscate code, but that's frowned upon by both CWS and Mozilla add-ons, meaning you may fail automated/manual reviews as a result.

Xan
  • 74,770
  • 16
  • 179
  • 206
  • He's right. No matter what you do, people can always access your code. What makes it even easier to view a Chrome app/extension code is the app at the below url which views the source code of crx files from Chrome Web Store urls. https://chrome.google.com/webstore/detail/chrome-extension-source-v/jifpbeccnghkjeaalbbjmodiffmgedin –  Dec 07 '17 at 17:49