executable

Hiding strings in Executable files

Seems to be a straighforward and easy task. Well it is. I stumbled uppon this eating candy, waiting until my teapot will boil water. Before that I was thinking how could I hide plaintext strings in an executable, because, for example, when you are making a program for others to change values to the variables and then compile themselves, you have to have easy accesible variables, where they have to be set, so you write the settings in plain-text format.

Now there could be several reasons why you want to do that. Maybe you want to hide some URL’s that the program is connecting to. Maybe you want to hide a key used for encrypting and decrypting data. Maybe you want to hide something I can’t think of anything else

Example 1:
You have a password “evilzone”, so you can add useless chars to it at design time, so the string becomes something like this “eqwverityluizopoasndfe”. So now all you have to do is read only every third char in that string and you’ll have a password.

Example 2:
You have a password “evilzone”, so you can split it into a fixed array of chars and then combine each element in an array when the method is called and return that.

Example 3:
You have a password “evilzone”, so you can use reverse-encryption, like Binary, HEX or Rot-13 to store the password in and then decrypt at run time.

This is all I can come up with which are simple. If you know more then please tell.

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments