Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OT: hiding strings in .exe

Author: Robert Hyatt

Date: 09:51:14 04/27/05

Go up one level in this thread


On April 27, 2005 at 11:57:56, Brian Kostick wrote:

>I wrote a little password masking function for Win32 console. I'd like to hide
>string literals in my executable. I know such things have been mentioned here
>before for more clandestine purposes. My question is, is there an easiest way to
>do this or should I use an encryption or lookup function?
>
>Thanks,
>Brian


Do you mean you want to have something like

"crafty 19.20"

in the executable, but not visible to the casual observer if they use something
like the "strings <filename>" command in unix to display all recognizable
strings?  If so, what I would do is some simple modification to the strings so
that they look like garbage unless the modification is undone.  A simple one
would be to xor every byte with something like 0xa5 or something similar.  Then
be sure that the executable does the xor a second time before using the
strings...




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.