I've seen a few approaches to this problem so I'm curious what the SO community has to say about it.
If I have configuration data that is used for accessing a production database (specifically a connection string):
if you're worried about that issue (a concern which, frankly, I don't share), you can save your connection string encoded, with the key stored somewhere else (= a different server).