Skip to main content
Known Participant
June 23, 2023
Question

How do you encrypt scripts for online sale?

  • June 23, 2023
  • 5 replies
  • 812 views

I'd like to try selling a couple JS scripts I made for Illustrator, but something I'm unfamiliar with is how to encrypt the script for online sale, but so that it's still usable by an end user. Does adobe have a method of doing this?

This topic has been closed for replies.

5 replies

Legend
June 25, 2023

You need to be realistic about the level of protection you can get. You can make it awkward for a casual user to get the lines of the script. This is commonly called "obfuscation" and there are a number of approaches. You can't stop it being examined by someone with suitable tools, and you can't keep it from being shared. Do NOT include secrets (like passwords to web sites) in the code.

pixxxelschubser
Community Expert
Community Expert
June 24, 2023

[ moved from InDesign to Illustrator forum ]

 

Community Expert
June 24, 2023

You could add a layer of obfuscation over jsxbin to make the code a bit more secure. One such utility is jsxblind. Check out the details at the following

https://indiscripts.com/post/2015/12/jsxblind-first-jsxbin-obfuscator-for-extendscript

-Manan

-Manan
Robert at ID-Tasker
Legend
June 23, 2023

Jsxbin is only a basic way to obscure the code - it can be easily converted back to jsx / plain text. 

 

 

Known Participant
June 24, 2023

But how does the client see that? For me to encrpy with jsxbin, it takes me a few seconds. For a client, well, what does the client have to deal with? Do they need me to personally email them a de-encryuption code?

CarlosCanto
Community Expert
Community Expert
June 24, 2023

no, the client will see random characters but Illustrator is still capable of running the script without issues. They'll run the script the same way other unencrypted scripts run.

 

@JSXBIN@ES@2.0@MyBbyBn0ACJAnASzEjJjEjPjDByBXzOjBjDjUjJjWjFiEjPjDjVjNjFjOjUCfjzDj
BjQjQDfnftJBnAEjzFjBjMjFjSjUEfRBXzEjOjBjNjFFfVBfyBffABB40BiAABAzAGByB

Legend
June 23, 2023

Hello @dane13860245,

 

Export your .jsx file as a "Binary" .jsxbin file

 

Regards,

Mike