Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
4

How to protect code inside extension for Illustrator?

Participant ,
Nov 04, 2023 Nov 04, 2023

I created extension for Illustrator using Adobe CEP.

How I can protect code inside?

And not only apply obfuscators to make code invisible but to not be able to open actual folder where is extension after installing?

What is the best option for that?

TOPICS
Scripting , SDK
563
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Nov 04, 2023 Nov 04, 2023

Hi,

For js files you can use some of the existing node modules or libraries to obfuscate your files.

For jsx files, you can convert into binary - Binary 

Best regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 04, 2023 Nov 04, 2023

Why do you want to block access to the extension folder? If you obfuscate the JS code, then the rest of the files: manifest.xml, icons, css, html are of less value. I don't think there is a cross-platform script to change access in Explorer (PC) or Finder (Mac) to a folder that would be executed when installing the extension. If Adobe Illustrator is running, it should get access to the folder for reading files itself.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 07, 2023 Nov 07, 2023

There where some other files related to licensing there.

But I take the hash of these files at runtime, and compare it against the hardcoded hash to check for authenticode signatures.

 

What librairies to obfuscate do you use?

Also I can see that there is .aip file format is it possible to convert this Adobe CEP created extension into that .aip?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 07, 2023 Nov 07, 2023

Example: JsxBlindRun script, TextToJSXBIN plugin for VScode, website javascriptobfuscator[.]com.

 

AIP is a plug-in format for Adobe Illustrator written in C++. The files are located in the Plug-ins folder.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 08, 2023 Nov 08, 2023

In the case you have experience  .aip, does that appraach works more stable then this Adobe CEP? In the sense that it crash less offten when it is some more complex automation workflow and similar stuff that we have with ExtendScript sometimes..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 08, 2023 Nov 08, 2023
LATEST

I don't do plugins, but the short answer is: C++ plugins have full or almost full access to Illustrator core, but are difficult to support different platforms and SDKs of each Illustrator version. And ExtendScript has almost no progress when major updates of Illustrator are released, slow on a large number of operations, restricted object model, but they are universal for PC and MAC users and easier to learn.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines