Search code examples
c++assemblyobfuscationinformation-hiding

Is it possible to hide a password defined within C++ code


... so that browsing the disassembly won't immediately expose the password (declared as a static variable). As an example, imagine a program that has a zip file attached that it must open for assets but is not easily accessible to prying eyes.

I know that it is impossible to completely hide or protect that zip but I'm curious what means are available to at least hold off a casual snooper.

Thanks!


Solution

  • No but there are things you can do to make it harder.

    Store the password as a series of numbers, do some calculations on them to generate the actual password, store parts of the password in resources such as icons etc.