LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Compile/Encrypt Bash Script (https://www.linuxquestions.org/questions/programming-9/compile-encrypt-bash-script-370614/)

DoubleOTeC 10-07-2005 08:16 AM

Compile/Encrypt Bash Script
 
Hey all...

I've done some freelance work on a project for a company, and other companies are interested in acquiring the work.

The project involved bash scripts and a web interface. I'd like to package the "product" and protect my source code. That is, compile it or at least scramble or "obfuscate" (i think the word is) it so as to prevent any stealing of my source.

Can this be done? If yes, how?

Is this necessary?

Thanx

MensaWater 10-07-2005 08:28 AM

Have a look at this thread which was about essentially the same question:

http://www.linuxquestions.org/questi...hreadid=370328

AnanthaP 10-08-2005 11:39 AM

A standard clause in most DBA / integrator contracts is:

Any scripts introduced by the "provider" for use in the "client"s "application" are owned solely by the "provider" and leased to the "client" for use with the "application" for the duration of the contract / in perpetuity.

What it means is that if the provider walks out of the contract, the client is protected but can't use the scripts anywhere else.

End

gnashley 10-08-2005 12:14 PM

There is a program called shc which will encode a shell script into a binary stream but only as long as the maximum one-line command size (+-512 chars?)

MensaWater 10-08-2005 01:52 PM

Quote:

Originally posted by AnanthaP
A standard clause in most DBA / integrator contracts is:

Any scripts introduced by the "provider" for use in the "client"s "application" are owned solely by the "provider" and leased to the "client" for use with the "application" for the duration of the contract / in perpetuity.

What it means is that if the provider walks out of the contract, the client is protected but can't use the scripts anywhere else.

End

SCO might argue with you about the ability of contracts to protect your code - IBM on the other hand might agree :D

primo 10-08-2005 09:09 PM

It would be easy to crack as long as /bin/bash could be replaced with /bin/cat, so system() isn't the best way.

DoubleOTeC 10-09-2005 07:33 PM

Thanx alot for the responses...

The other thread was an interesting help; didn't turn up in my own searched though...

Looking to try out shc


All times are GMT -5. The time now is 05:45 AM.