Rob,On the other hand, why are you defining your strings as arrays of bytes in the first place? Why not just define them as strings?
I am looking for ways to protect certain pieces of information in my program from part-time hackers (if full-time hackers want to disassemble a program I ain't gonna be able to stop them). Rather than define anything that can be picked up as a string of characters I am trying to define it as binary data. Am I completely off the mark in my assumptions ? Will defining strings as binary data hide it from resource viewers and the like ?
I thought that might be your goal. Your code does nothing to achieve it, though. All you've done is obfuscate your source code. The compiled version of your code has very little different from the compiled version of mine. Both contain a sequence of bytes that, when interpretted as ASCII characters, will appear as your string. I even have a command-line program, strings, that extracts any string-like data from a file.
Whether you express each byte's value as a decimal number, a hexadecimal number, or a character literal makes no difference. In your EXE file, they're all just bytes.
-- Rob
_______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

