Operating System - HP-UX
1834156 Members
2545 Online
110064 Solutions
New Discussion

Re: Encrypting and executing an encrypted shell script

 
SOLVED
Go to solution
Michele (Mike) Alberton
Regular Advisor

Encrypting and executing an encrypted shell script

Hi Folks !

I'm sorry if the question sounds stupid, but I would like to know if there's a way to encrypt shell scripts and execute them while encrypted.
I've used crypt to encrypt the shell script, but I don't think I can execute it before decoded.

As you can imagine our intention is to prevent our customer from playing too much with those scripts, thus blocking them in the upfront.

Is there anything like a key pair encryption to allow using a public key for execution and a private key for editing ... or anything like that ?

Thank You so much !

Mike
2 REPLIES 2
Balaji N
Honored Contributor
Solution

Re: Encrypting and executing an encrypted shell script

hi

this is not encrypting / decrypting, but might provide what u want.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4b53b10230dcd61190050090279cd0f9,00.html


there was one more thread in the last two week (... i never remember the dates) which asked for a similar question. search for it.

http://hpux.connect.org.uk/hppd/hpux/Shells/shc-2.4a/

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Michele (Mike) Alberton
Regular Advisor

Re: Encrypting and executing an encrypted shell script

Straight to the point Balaji !

Thank You so much !

Well, the Note "Use with care" worries me, but we'll see :-)

Thanks !

Mike