Logiks5,
I have to ask, why would you want to do such a thing?
Yes, it can be done, but, all you are doing is making the program more complicated, slowing down the process scan time, having to write the encryption / decryption routines, and making the program hard to debug / modify, and writing code that only you can understand. A company could interpet this as writing code for job security. You may have a good reason for doing this, but i know of several people who have been escorted out the front door for writing such code. it cost their companies over a million dollars and now those companies (and those individuals) are required to sign legal documents assuming liability for any such code in the future.
Not trying to slam you, just expressing my opinion, because i'm the one who has to trouble shoot that code, report the problem, document the problem, answer to the department head, show him what's happening & why production was down for so long (or still is down). it gets real messy and pretty soon, the plant manager will be involved and possibly the legal department to see what can be done now and in the future.
regards,
james