One day it came to my mind that bash scripts I was developing for a long time (approximately 5000 lines) should be encrypted in order not to be viewed by everyone…

Thanks to heaven there is utility written by Francisco Javier Rosales García SHC that allows to create a stripped binary executable version of the script.

This utility is included into many Linux distributions’ repositories (I’ve used it in Ubuntu and Fedora). To use it in Ubuntu (my laptop operating system) just install it by commands:

apt-get install shc
apt-get install build-essential

The second command installs dependencies for SHC. On my Ubuntu Feisty they weren’t installed automatically during SHC installation and I’ve got errors when compile scripts with SHC (that’s why I’ve installed them explicitly).

When necessary packages are installed compile some script with command:

shc -f

This command will create which can be run as a regular binary and is encrypted. Moreover this executable can be started only on the machine it’s compiled at (of course until you’ve compiled it with ‘relax security’ option -r).

This utility is also useful to create demo version binaries: it’s possible to set expiration date for the binary.

Respect to the author!




  1. Pingback : Can’t find a way to encrypt Unix/Linux shell script… « Linux Screw

  2. Pingback : » Blog Archive » Create .deb or .rpm from .tar.gz with checkinstall

  3. January 22, 2011  1:03 pm by Philadelphia auto insurance Reply

    I cant believe some of the sites I have been brought to by stumblupon (just now this site) I was seeking to spend a couple of dull hours away, when stumbleupon landed me here. What a wonderful website you have I'm so happy to have discovered it I have just spent the last twenty mins working through some of your articles, and have also bookmarked some of them. I will defiantly be back to read a bit more when i have alittle more time.

  4. April 29, 2011  6:58 pm by Huesos del cuerpo humano Reply

    Thanks I directly found the curious inside story

  5. May 14, 2011  4:04 pm by lunar pages coupons Reply

    Someone essentially help to make seriously articles I would state. This is the first time I frequented your website page and thus far? I amazed with the research you made to make this particular publish extraordinary. Great job!

  6. May 22, 2011  1:09 am by make a day Reply

    I do like the way you have framed this particular matter plus it really does give me some fodder for thought. Nevertheless, through what precisely I have experienced, I just trust when the actual feedback stack on that people today stay on issue and in no way get started on a soap box of some other news du jour. Yet, thank you for this outstanding point and whilst I do not really go along with it in totality, I respect your standpoint.

  7. May 22, 2011  1:54 pm by technology articles Reply

    Hey! I'm at work surfing around your blog from my new iphone 4! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the superb work!

  8. May 26, 2011  8:33 pm by Buy propofol Reply

    Hmm it seems like your blog ate my first comment (it was extremely long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog. I too am an aspiring blog blogger but I'm still new to the whole thing. Do you have any points for novice blog writers? I'd definitely appreciate it.

  9. May 27, 2011  3:36 am by Jenna Dute Reply

    Hi Webmaster, commenters and all people else !!! The blog was completely implausible! Numerous great information and inspiration, both of which all of us want!Maintain ‘em coming… you all do such an incredible job at such Ideas… can’t let you know how a lot I, for one respect all you do!

  10. May 29, 2011  10:22 am by fmla lawyers saint cloud Reply

    Hello there I am so delighted I found your blog page, I really found you by accident, while I was researching on Aol for something else, Nonetheless I am here now and would just like to say thanks a lot for a incredible post and a all round enjoyable blog (I also love the theme/design), I don’t have time to browse it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the fantastic job.

  11. May 31, 2011  11:16 am by naturalizer footwear Reply

    Admiring the persistence you put into your website and in depth information you offer. It's good to come across a blog every once in a while that isn't the same outdated rehashed material. Excellent read! I've saved your site and I'm adding your RSS feeds to my Google account.

  12. March 30, 2012  6:33 pm by fruit mocking party Reply

    My developer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he's tryiong none the less. I've been using Movable-type on various websites for about a year and am concerned about switching to another platform. I have heard good things about Is there a way I can import all my wordpress content into it? Any kind of help would be really appreciated!

  13. June 6, 2013  2:16 pm by Clownfish Care Guide Reply

    The clownfish are hermaphrodites, which means they develop into males
    first, and when they mature, they tend to change as females.
    Drop some pieces into the aquarium and give
    the clownfish time to eat the food before offering more.

    For a lot of hobbyists, keeping a marine aquarium often becomes a life-long passion.

Leave a reply


Your email address will not be published.