C# SQL) How to encrypt connectionstring of web.config to Azure SQL database? (and import the key into Azure SQL database for decryption?)
<p>The Architecture of my software is,</p>

<p>WPF (Windows desktop application on users' computers) - WCF web role(Windows Communication Foundation) on Azure Cloud Service (Here, the connectionstring to Azure SQL database exists)- Azure SQL Server(Azure SQL database).</p>

<p>According to my knowledge, new feature like 'database.secure.windows.net' can be included recently in connectionstring to Azure SQL database..</p>

<p>So, I've changed the connectionstring of my application as included the 'secure' in connectionstring as above and through this I can access to Azure SQL database successfully without any problem as before.</p>

<p>If we configure our connectionstring with 'secure.windows.net', is there no need to worry about connectionstring to be exposured?</p>

<p>If still, I need to encrypt my connectionstring to Azure SQL database, then how can I implement this?</p>

<p>How can I encrypt(maybe, RSA ?) ?</p>

<p>In the way of trying to encrypt, I've learned about RSA encryption little bit but not quite enough.</p>

<p>And the most important thing I want know is, if I've encrypted with RSA container or makecert.exe (certificate), how can I export the RSA container or the certificate to Azure SQL database(Azure SQL server) so that Azure SQL database(Azure SQL server) can decrypt the encrypted connectionstring to allow accesses from client applications?</p>

<p>P.S) According to Microsoft Azure's official document, DPAPI and RSA are not supported with Azure and we have to use another protected configuration provider like PKCS12 ProtectedConfigurationProvider.</p>

<p>Because my major is not related to software but bio-chemistry, an explanation in detail will be greatly appreciated !</p>

<p>Thank you so much !</p>