Page 1 of 1

Hiding text in the compiled final program.

Posted: Tue Mar 04, 2025 3:26 pm
by matalog
Lets say I have a string that I will use somewhere in a final program, I assume that when I compile the program, that the string will be viewable in a hex-editor.

If I wanted to make sure someone couldn't find or change that text in a hex-editor, how could I go about that?

One method I thought of was to add x to the ascii number of each character in the string, and then subtract x from each character as it is used in the program, but maybe there is a standard way to use in PB?

Re: Hiding text in the compiled final program.

Posted: Tue Mar 04, 2025 3:39 pm
by Axolotl
I guess that there is AESEncoder() and AESDencoder() in PB, but I have never used that.

Maybe before someone (qualified) can give a serious answer here, the questions must be allowed:
+What do you need it for?
+ Who should be prevented from doing so?
As with other (similar) topics, the amount of effort required depends on the size of the expected threat.

Re: Hiding text in the compiled final program.

Posted: Tue Mar 04, 2025 3:49 pm
by Caronte3D

Re: Hiding text in the compiled final program.

Posted: Thu Mar 06, 2025 12:08 am
by matalog
Caronte3D wrote: Tue Mar 04, 2025 3:49 pm Take a look to this thread:
https://www.purebasic.fr/english/viewtopic.php?t=79212
That's brilliant, thanks.