Hide source code?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Dariusz1989

Hide source code?

Post by Dariusz1989 »

Heya

I'm working of few scripts now. So far so good. I was wondering how does I can protect myself from losing my work... Is there a way to compile/hide my code so that people can only use it and cant edit/cut/paste etc etc?

I know I cant do anything with python but maybe java...

Thanks, bye.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

larsen67

Hide source code?

Post by larsen67 »

You can export your script to binary… from the ESTK… if you use Adobe's ExtendScript…
Dariusz1989

Hide source code?

Post by Dariusz1989 »

Heya
So is the binary non backward em uncodable?

Also when its in binary it dont pop up in my filters anymore.

I used this line in past:

Code: Select all<javascriptresource>
<name>DAZ Tools - MASKS</name>
<category>Dariusz Makowski www.dariuszmakowski.com dariusz1989@gmail.com</category>
<menu>filter</menu>
<about>Dariusz Makowski www.dariuszmakowski.com dariusz1989@gmail.com</about>
<enableinfo>true</enableinfo>
</javascriptresource>

Does it mean I need something like this now?

bb/viewtopic.php?t=466

So have javascript in that folder with location of binary file in it. And everytime user press on the script it will run Binary ?

Thanks, bye.
xbytor

Hide source code?

Post by xbytor »

Dariusz1989 wrote:So have javascript in that folder with location of binary file in it. And everytime user press on the script it will run Binary ?


No. You will need to have a text jsx file that has your <javascriptresource> block in it along with an @include or $.evalFile to load your binary script.
Dariusz1989

Hide source code?

Post by Dariusz1989 »

Heya

Yea I just discovered eval function. Everything runs perfectly now. So can some1 now decode it back from binary to Java or its save?

Thanks, bye.
xbytor

Hide source code?

Post by xbytor »

Dariusz1989 wrote:So can some1 now decode it back from binary to Java or its save?

As far as I know, nobody has bothered to write a decompiler. I spent an afternoon looking at the problem and didn't really see the point of doing it.