Protecting or Encrypting written source code in C, C++, bash and csh

Posted on 2004-10-29
Last Modified: 2006-11-17
Ive written several programs in c, c++, bash and csh (although last 2 are shell languages) ...
That need protection ...
Looking for program or programs (with GUI interfaces preferably) on which I can code in C, C++ (and bash,csh)...
compile and execute my codes ... and once Ive closed the program-interface ... no-one can access my source
codes without the appropriate encryption password... Presently running linux RedHat 9.0 ...
Question by:RickyBrown
    LVL 21

    Accepted Solution

    Why don't you set up a CVS repository that is password protected.  Only users belonging to your group would have access to the source code.
    LVL 3

    Assisted Solution

    I understand you want to encrypt your source code so no one,
    not the admin nor hacker, gets to your code.

    you can do it by zipping and encrypting the whole directory:
        zip -r -e source source   # creates
    and then deleting it
        rm -rf source  # removes directory source
    later unzipping it
        unzip -u source source  # unpack, don't overwrite newer files

    consider backing up and donÄt forget the password! :-)

    you can do that with gpg (The GNU Privacy Guard,,
    or some other encrypting tool.

    for more convenient access, you'd have to set up an encrypted volume
    look for CFS and others in

    don't let them see your data! ;-)
    who thinks a certain level of paranoia is a part of the job :-)
    LVL 3

    Expert Comment

    PS: if you think the admin and the hacker are one person,
    then you'll also need to wipe the data before deleting. :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    This article will show, step by step, how to integrate R code into a R Sweave document
    The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now