How to make a safety connection string?

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
7 posts Page 1 of 1
Contributors
User avatar
KraZy
Top Poster
Top Poster
Posts: 93
Joined: Sat May 26, 2012 8:40 am

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
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

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
Top Poster
Posts: 93
Joined: Sat May 26, 2012 8:40 am

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
New Member
Posts: 16
Joined: Sun Aug 30, 2015 7:16 pm

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
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

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
Top Poster
Posts: 93
Joined: Sat May 26, 2012 8:40 am

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
New Member
Posts: 16
Joined: Sun Aug 30, 2015 7:16 pm

I just give the safest solution.
Saving server details serverside is NEVER a good idea.
7 posts Page 1 of 1
Return to “Tutorial Requests”