The question to ask is why do you want to encrypt your code?
- It contains sensitive information (passwords and such). Answer: encrypting your code is the wrong way to do this. What is encrypted will have to be decrypted to run it, so the program itself will contain the information to do it and anyone with a little brains and time will be able to do it also and your passwords and other sensitive information will be out in the open before you know it.
- I want to protect my code from being used and stolen by someone else. Answer: even compiled code gets stolen and used. Ever heard of "software piracy"?
- My software contains such valuable/new/unique/genial ideas, I don't want anyone to know how I solved this problem. Answer: Someone said once : "If you want to hide your code, you probably don't want them to find out how crappy it is. But seriously: if you have found an new and easy way to factor large
prime numbers, get yourself a patent.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law