Hiding your strings?


Ever thought of hiding your strings of your file upon building your application (in C that is)?  Well whenever you place a char *a = “hello world” in your application, the “hello world” string will automatically appear in your file when you open it with a notepad.  Now some of you might thought of encrypting them and decrypting them later, well this idea is fine but there’s another way of getting rid of it for good.

By doing char *a = {‘H’, ‘e’, ‘l’, ‘l’, ‘o’, ‘ ‘, ‘W’, ‘o’, ‘r’, ‘l’, ‘d’, ‘\o’} the string is no longer found in the file.  Try this out for a change!  Be reminded that this only works when you declare your strings locally inside functions and not outside them.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: