Skip to main content
dublove
Legend
Sep 18, 2025 8:59 AM UTC
Question

How can I encrypt only a portion of the code?

During the conversion to jsxbin, I discovered that full encryption renders the code unusable.
Additionally, certain sections need to remain unencrypted to allow user customization.


How can I selectively encrypt specific parts of the code?

5 replies

Community Expert
Sep 18, 2025 12:50 PM UTC

You can include the encrypted code into your unencrypted code. I suppose you will have to place the encrypted code in doScript. I recall doing something like this but not exactly sure how I did it and why. I will post when I find my code

-Manan

Translate
-Manan
Community Expert
Sep 18, 2025 12:58 PM UTC

Probably it is eval instead of doScript and also removing the new lines. See the following

https://community.adobe.com/t5/illustrator-discussions/why-cannot-i-not-run-this-jsxbin/td-p/15421413

-Manan

Translate
-Manan
dublove
dubloveAuthor
Legend
Sep 18, 2025 1:34 PM UTC

I tried it, but it didn't turn out as great as I hoped.
No response.

Translate