Skip to main content
dublove
Legend
September 18, 2025
Question

How can I encrypt only a portion of the code?

  • September 18, 2025
  • 1 reply
  • 236 views

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?

1 reply

Community Expert
September 18, 2025

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

-Manan
Community Expert
September 18, 2025

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

-Manan
dublove
dubloveAuthor
Legend
September 18, 2025

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