Skip to main content
Inspiring
Oct 5, 2022 10:09 AM UTC
Answered

encrypting script

Hi

Is it possible to encrypt a script? I mean hiding it. I saw a script which starts:

 

 

#targetengine tableAlignOnLongestLine
eval("@JSXBIN@ES@2.0@MyBbyBnAOMSbyBn0AGJTnA

 

But how do it?
 
This topic is closed to new replies. Start a new post to keep the conversation going.
m1b
m1bCorrect answer
Community Expert
Oct 5, 2022 10:17 AM UTC

Hi @mateuszp13156491, are you using VSCode as your IDE? If so, ExtendScript Debugger has a command "Export as Binary" (command-shift-J on Mac). Type "Export bin" in the command palette and you should see it.

- Mark

5 replies

James Gifford—NitroPress
Legend
Oct 5, 2022 4:30 PM UTC

No more than it's ever been possible to encrypt runtime code. You can hide it from a casual observer, but if it runs, a competent programmer/developer can unhide it.

 

—

Translate
Inspiring
Oct 6, 2022 10:27 AM UTC

Thank You for answer. My script is rather for poeple, who use InDesing but don't have a big knoledge about scripting.

Translate
Community Expert
Oct 5, 2022 4:05 PM UTC

JSXBIN can obfuscate the code but there are tools that can decompile it, so to better protect your code you can use a second layer of obfuscation. JsxBlind is one such script the obfuscates jsxbin files and has been created by our very brilliant collegue @Marc Autret. See the following links for more information on JsxBlind, its free so no worries there as well

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

https://www.indiscripts.com/post/2018/10/jsxblind-2-meets-idextenso

-Manan

Translate
-Manan
Inspiring
Oct 6, 2022 10:29 AM UTC

Thank You, I wil test th obfuscator

Translate
m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
Oct 5, 2022 10:17 AM UTC

Hi @mateuszp13156491, are you using VSCode as your IDE? If so, ExtendScript Debugger has a command "Export as Binary" (command-shift-J on Mac). Type "Export bin" in the command palette and you should see it.

- Mark

Translate