I have doubts about how to store a password for use in my application. I need to encrypt / decrypt data on the fly, so the password should be somewhere. The options will be that it will be hardcoded in my application or will load it from a file.
I want to encrypt the license file for the application, and one of the security steps includes the ability to decrypt the license (other steps follow it). The password never knows for the user and only for me, because it really is not needed!
I am interested in the fact that hackers look at my code and retrieve the password that I stored there, and use it to crack a license that violates the first security barrier.
At this point, I am not considering code obfuscation (in the end, I will), so this is a problem.
I know that any solution that stores passwords is a security risk, but there is no way!
I thought about building a password from several parts before I really need it, but at some point the password is complete, so it only takes to debug and a breakpoint in place.
What approaches suit you (and galls) when you need to store your passwords hardcoded in your application?
Greetings
source share