I am using winform application.
I am looking for approach by which i can encrypt a connection string in app.config file in such a way which a developer can not decrypt.
if can use any encryption logic to encrypt connection but the problem is when i will use sql connection object then i have to decrypt connection string first and pass that readable connection to sql connection object which any developer debug the code and will be able to know what is connection string.
so please tell me any approach where i can pass encrypted connection string to sql connection object and sql connection object has one connection string property which will not reveal the actual connection string.
please tell me best approach as a result once i encrypt connection string other developer will not be able to know the connection just debugging the code.
Thanks


