I'm creating a c# client to be installed on a third party server to allow an easy monitoring system.
This c# client would send info to us, and so, I thought to send data to a mongoDB server. Easily done, it works, but ...
But I'm not aware of how save in c# code or in app settings the connection string in a way that cannot simply be see in plain text using, for example, ilspy or similar.
I know that all is reversible, but is there a way to obfuscate a string or crypt it or what else to just be a bit more safer?
In S.o. I consulted the follows
Encrypt connection string in c# code : this refers to
section.SectionInformation.IsProtected
, but there is not the 'theory' so I've not idea of what is this; also linked msdn article lead to an old vs2015 retired documentC# WinForm application - How to save connection string (SQLite) : this question does not face the problem of how to hide plain text string but only how to save it
Encrypting/Decrypting connection string from C# code : it looks interesting but it refers only to web.config