Skip to main content
Inspiring
October 5, 2022
Answered

encrypting script

  • October 5, 2022
  • 3 replies
  • 980 views

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 has been closed for replies.
Correct answer m1b

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

3 replies

James Gifford—NitroPress
Legend
October 5, 2022

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.

 

Inspiring
October 6, 2022

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

Community Expert
October 5, 2022

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

-Manan
Inspiring
October 6, 2022

Thank You, I wil test th obfuscator

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
October 5, 2022

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