Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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

Posted on 2004-10-29
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 21

Accepted Solution

MogalManic earned 252 total points
ID: 12443294
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.

Assisted Solution

georg74 earned 248 total points
ID: 12449303
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 source.zip
and then deleting it
    rm -rf source  # removes directory source
later unzipping it
    unzip -u source source  # unpack source.zip, don't overwrite newer files

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

you can do that with gpg (The GNU Privacy Guard, http://www.gnupg.org/),
or some other encrypting tool.

for more convenient access, you'd have to set up an encrypted volume
look for CFS and others in http://koeln.ccc.de/archiv/drt/crypto/linux-disk.html

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

Expert Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

636 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