# executing an encrypted script

**URL:** <https://community.unix.com/t/executing-an-encrypted-script/163508>\
**Category:** Shell Programming and Scripting\
**Created:** [July 20, 2006, 3:53pm UTC](https://community.unix.com/t/executing-an-encrypted-script/163508 "2006-07-20T15:53:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajnabi](https://community.unix.com/letter_avatar/ajnabi/32/5_5575768a8748004e209b776fc1b2916d.png) [@ajnabi](https://community.unix.com/u/ajnabi)\
**Post date:** [July 20, 2006, 3:53pm UTC](https://community.unix.com/t/executing-an-encrypted-script/163508/1 "2006-07-20T15:53:58Z")

</div>

Can we execute an encrypted shell script .  
I encrypted a shell scripts with crypt with keys and tried to execute it it gave me segmentation faul??  
Can somebody answer this one please??

If we can is there any settings i need to change??

Thanks

---

<div class="post-metadata">

**Author:** ![jim\_mcnamara](https://community.unix.com/letter_avatar/jim_mcnamara/32/5_5575768a8748004e209b776fc1b2916d.png) [@jim\_mcnamara](https://community.unix.com/u/jim_mcnamara)\
**Post date:** [July 20, 2006, 11:01pm UTC](https://community.unix.com/t/executing-an-encrypted-script/163508/2 "2006-07-20T23:01:49Z")

</div>

If you want to hide scripts so customers don't "borrow" your code, consider a shell script compiler.

shcomp will compile ksh93 into an executable.  
See: [www.kornshell.com](http://www.kornshell.com)

---

<div class="post-metadata">

**Author:** ![ajnabi](https://community.unix.com/letter_avatar/ajnabi/32/5_5575768a8748004e209b776fc1b2916d.png) [@ajnabi](https://community.unix.com/u/ajnabi)\
**Post date:** [August 8, 2006, 9:35am UTC](https://community.unix.com/t/executing-an-encrypted-script/163508/3 "2006-08-08T09:35:30Z")

</div>

Jim,  
Looked at the following link but could not find a compiler for k shell.  
any link to ksh compiler will help...  
You are right .. I wanna keep my code so that people cannot copy.

I am using Solaris 9/Sun blade.
