My application has the requirement of publishing to Twitter using a specific consumer key and consumer secret of a fixed value.
I'm having trouble determining the best way to store these values securely in my application (The user should not be able to use another Twitter application - only mine).
Here are a few things I have already tried:
Scenario 1: Store in App.Settings
Fail - App.Settings are not initially encrypted.
Scenario 2: Store as hard coded value and use Dotfuscator
Fail - The variable is clearly visible in Reflector after being obfuscated.
Scenario 3: Encrypt and store as hard coded value.
Fail - Whilst this passes Scenario 1, the key itself will be hard coded (to ensure it generates the correct decrypted value) and is visible for Scenario 2.
The main issue I have is that in order for Twitter to recognise my consumer key/secret they need to be decrypted, however I don't want this value to be plainly set in the application itself.
What would be the best way for me to tackle this?