• Top Members
    Reps
    Posts
  • 834 Replies
    2585 Replies
  • 716 Replies
    2025 Replies
  • 331 Replies
    1928 Replies

How to make a safety connection string?

Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
User avatar
KraZy
Top Poster
Posts: 93

How to make a safety connection string?

Tue Dec 08, 2015 8:30 pm

Hi there,

for some reason I must develop an application in vb.net, now this application execute a connection with a database, for the moment I save the connectino details in the settings of App.config, so I've this structure:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="Test_Sync.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
    <userSettings>
        <Test_Sync.My.MySettings>
            <setting name="server_name" serializeAs="String">
                <value />
            </setting>
            <setting name="username" serializeAs="String">
                <value />
            </setting>
            <setting name="password" serializeAs="String">
                <value />
            </setting>
            <setting name="database" serializeAs="String">
                <value />
            </setting>
            <setting name="state" serializeAs="String">
                <value>False</value>
            </setting>
        </Test_Sync.My.MySettings>
    </userSettings>
</configuration>
Now I want to know how I can encrypt this information, in particular (username, password, database, server_name). Someone could made a tutorial for this?
I'm in the empire business.

User avatar
visualtech
VIP - Donator
Posts: 265

Re: How to make a safety connection string?

Wed Dec 09, 2015 10:50 am

Someone can, but then it'll be futile. You're doing something for the sake of doing it; it isn't the standard you should use when dealing with critical and/or private information. Consider rewiring the application. It can save you from hours of frustration and anger later. :) Should you need any help, I am only a PM away.
Image

User avatar
KraZy
Top Poster
Posts: 93

Re: How to make a safety connection string?

Wed Dec 09, 2015 12:55 pm

visualtech wrote:Someone can, but then it'll be futile. You're doing something for the sake of doing it; it isn't the standard you should use when dealing with critical and/or private information. Consider rewiring the application. It can save you from hours of frustration and anger later. :) Should you need any help, I am only a PM away.
I just want encrypt the connection string that's it.
I'm in the empire business.

User avatar
MrGeneralQ
New Member
Posts: 16

Re: How to make a safety connection string?

Tue Dec 15, 2015 1:02 am

What you should do is using PHP to make The connection. Never put Your credentials in Your program , not even in the code itself

User avatar
visualtech
VIP - Donator
Posts: 265

Re: How to make a safety connection string?

Tue Dec 15, 2015 10:25 am

MrGeneralQ, instead of providing futile solutions, let's just focus on the problem the OP has at hand. I told him about what you're saying right now, but, he doesn't want that. One thing you need to understand while making suggestions is the realm of the problem. You're suggesting PHP for a front-end NATIVE application. In the last post, you simply declined the usage of JSON in VB.NET.

The point I am trying to make here is that you should research a little bit before posting. No hard feelings! :)
Image

User avatar
KraZy
Top Poster
Posts: 93

Re: How to make a safety connection string?

Tue Dec 15, 2015 8:20 pm

I could accept also a backend php script that allow the connection but I never work on a similar thing
I'm in the empire business.

User avatar
MrGeneralQ
New Member
Posts: 16

Re: How to make a safety connection string?

Sun Feb 28, 2016 1:42 pm

I just give the safest solution.
Saving server details serverside is NEVER a good idea.

Post Reply

Return to “Tutorial Requests”