Re: hide source code



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
.



Relevant Pages

  • Re: Programmatically update forms in design view
    ... Opening forms in design view is not a good solution. ... If you want to do it anyway, make sure the form is not already open before you open it in design view. ... Private Sub Command15_Click ... Dim Erm As String, fm As String, MyDB As Database, rs As Recordset, e As ...
    (microsoft.public.access.forms)
  • Gullible fools write __ Scumbag Jackbooted PIGS taser student at Kerry forum <= hey gun-nutter
    ... He'll be doubling up to physical Ziad until his string encourages ... skull. ... Just opening in front of a release v the area is too ...
    (sci.chem)
  • Re: ADD Mode
    ... Try opening your child form once then use callbacks to sync it with the main ... Public Function IsOpen(strForm As String) As Boolean ... It currently opens the from with populated information. ...
    (microsoft.public.access.formscoding)
  • Re: Ill Cry Instead
    ... you play the open lower E string and immediately hit the ... play the G chord in the middle strings. ... This allows you to get the jumpy sound of the guitar in the opening. ...
    (rec.music.beatles)
  • Re: File pointers ot unmanaged code ??
    ... // I am converting a file name string in to unicode byte array. ... I am opening the file properly. ... > Peter Foot ... > Windows Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)