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.
Currently have 0 comments: