I am writing a simple database application. The program should get database information (host,name,user,pass) and store them for next uses. So I need to encrypt them and store encrypted information in a file. On the other hand I don’t want to put any passwords in program code. My question is how should I store key for encryption algorithm in program? (the key used for encrypt database information)
I am writing a simple database application. The program should get database information (host,name,user,pass)
Share
Put the key in an external file and make sure the file permissions allow only the application user to access it.