Re: hide source code
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Wed, 01 Jun 2005 22:39:23 +0100
On Tue, 31 May 2005 15:46:11 -0700, iWrite
<iWrite@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>I would like to know if there is anyway to hide the string variables by
>simply opening it from a notepad.
>
>string mString = "thequick";
>
>can view easily by opening the application file from Notepad.
One way not to have the actual strings in your compiled
program is to put only encrypted copies in your source code. Include
a decryption function in your program to decrypt the strings before
you use them.
e.g. Source code:
string mySecretMessage = "Khoor Zruog";
string myRealMessage = Decrypt(mySecretMessage);
DoSomeWork(myRealMessage);
The real text of the message will only exist at runtime, and will not
be present in the executable file on disk.
In this case the decryption function just replaces each character with
the one three places earlier in the alphabet. Pick your
encryption/decryption method depending on how secure you want your
executable file to be.
HTH
rossum
The ultimate truth is that there is no ultimate truth
.
- References:
- hide source code
- From: iWrite
- hide source code
- Prev by Date: Re: Fast string operations
- Next by Date: Re: Duplicate Guid
- Previous by thread: Re: hide source code
- Next by thread: Re: How to obtain the IP address of the interface...
- Index(es):
Relevant Pages
|