I have an application that has the hard coded encrypted version of a password. I then decrypt it and store it into a variable for use later on. My issue is that I encrypted it with a certificate as the secret, but only by reading it into a filestream. How can I avoid using a file, because if the file is deleted, then I can't ever recreate this file. I want to avoid hard coding my secret and move to a more dynamic form.
How would you tackle something like this?
How would you tackle something like this?