Skip to main content
Inspiring
November 4, 2023
Question

How to protect code inside extension for Illustrator?

  • November 4, 2023
  • 2 replies
  • 955 views

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?

This topic has been closed for replies.

2 replies

Sergey Osokin
Inspiring
November 4, 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.

Inspiring
November 7, 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?

Sergey Osokin
Inspiring
November 7, 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.

Charu Rajput
Community Expert
Community Expert
November 4, 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