I need to encrypt data and store it in a file and later be able to decrypt it back.
For this I am using RijndaelManaged class. Now I do not want to keep the key hardcoded in the code. After some googling I found [this](http://www.obviex.com/samples/Code.aspx?Source=EncryptionCS&Title=Symmetric%20Key%20Encryption&Lang=C%23) method -

Here the key is generated but then all other values like passphrase, salt and IV are hardcoded. I do not have the option of letting the user enter the password, so I will also have to hard-code these values. So is this really safe? Can't some hacker use tools to find these hardcoded values and figure out the key?