0
Hello, people I am with the following situation I made an application and some connections I made via visual C# Only it created a file calling app.config with the connection information as below
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="_4Award.Properties.Settings.controleBDConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\controleBD.accdb;Jet OLEDB:Database Password=base1"
providerName="System.Data.OleDb" />
<add name="_4Award.Properties.Settings.controleBDConnectionString1"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\controleBD.accdb;Jet OLEDB:Database Password=base1"
providerName="System.Data.OleDb" />
<add name="_4Award.Properties.Settings.controleBDConnectionString2"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\controleBD.accdb;Jet OLEDB:Database Password=base1"
providerName="System.Data.OleDb" />
<add name="_4Award.Properties.Settings.controleBDConnectionString3"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\controleBD.accdb;Jet OLEDB:Database Password=base1"
providerName="System.Data.OleDb" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>
I was wondering if there’s any way to encrypt the password to look like this in another application
<connectionStrings>
<clear />
<add name="CONNECTION_SQLSERVER" connectionString="Data Source=PARKING-PC\PONTOSQLEXPRESS;Initial Catalog=ACESSOBD;User Id=DEFAULT_ACESSO;Pooling=true;Min Pool Size=1;Max Pool Size=60;Password=" />
<add name="PASSWORD_CONNECTION_SQLSERVER" connectionString="CGCCTKQ" />
</connectionStrings>
It depends on how you are using the Connection string. You have the code that makes use of it?
– Jéf Bueno
I will take a look at the project and then put, as I said I made this connection via Wizard of Visual Studio C# to speed up the creation of the application, but I found this security flaw for the program I created
– miguelf03kai