I've been looking at this all morning and I'm getting to the point I cannot see the wood forthe trees so looking to the community for suggestion and clear thought.
I'm writing an application which will read data from a password protected Zip file supplied by a third party. This format will not change (so suggestions to do so cannot be entertained) and neither will the password.
As the password on this Zip will always be the same my problem is where and how to store this password which is secure? I don't want to store it as a string in the code for obvious reasons. And as I need the actual password then storing the Hash of it isn't a route (I don't think).
I might be over thinking this and there is a simple option but like I say I've lost my tress in the wood :)
EDIT: To give more background to the constraints of this issue:
The data I have to read is in the form of a encrypted zip files. The password for which is static (eg remains the same on all files)
Many files might come through in a single day and non-regular intervals
The user of the application does not know and not allowed to know the password of the zip file (typing in isn't an option)
The application has to run as a Windows Service and process these
files automatically as they are provided and without any user
intervention.These files and the way they are delivered and formatted is by a 3rd party and I have no control to change these parameters
These are the contraints I've been given for the project and I need to provide a solution to it. I already know storing as a string in the code is WRONG. Repeating this as your reply is not an answer!
Thank you to the community for your help :)