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 |
Have a look at this thread which was about essentially the same question:
http://www.linuxquestions.org/questi...hreadid=370328 |
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 |
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?)
|
Quote:
|
It would be easy to crack as long as /bin/bash could be replaced with /bin/cat, so system() isn't the best way.
|
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. |