Hiding text in the compiled final program.

Just starting out? Need help? Post your questions and find answers here.
User avatar
matalog
Enthusiast
Enthusiast
Posts: 305
Joined: Tue Sep 05, 2017 10:07 am

Hiding text in the compiled final program.

Post 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?
Axolotl
Addict
Addict
Posts: 872
Joined: Wed Dec 31, 2008 3:36 pm

Re: Hiding text in the compiled final program.

Post 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.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
User avatar
Caronte3D
Addict
Addict
Posts: 1371
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Hiding text in the compiled final program.

Post by Caronte3D »

User avatar
matalog
Enthusiast
Enthusiast
Posts: 305
Joined: Tue Sep 05, 2017 10:07 am

Re: Hiding text in the compiled final program.

Post 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.
Post Reply