.NET Compact Framework Connection String Encryption / Security

I am writing a C # application for a smart device running Windows Mobile 6.1. It is pretty simple. Just query the database and get the results. Nothing special.

This program will only be deployed internally, but we still want to be safe with our SQL connection information.

How best should I encrypt / protect my connection string in a program? I saw examples for .NET programs using AppSettings, but I do not see the installation in my Solution properties.

This is my first application development in C # / Visual Studio 2008, so there might be some kind of customization that I don't see.

Thanks for the help.

+3
source share
2 answers

Keep in mind that if this is in your program, then it is inherently unsafe. No matter what you do, if the application has the ability to make this secure connection with the information it contains, then this information can be pulled out by an experienced hacker with time and desire.

But are you worried about this level of threat? Obviously, just throwing it into the app.config file is about as low as you. All that should happen is that someone opens the file using text reading and ta-da, you have your credentials.

, . , "" . , - , .

, . . .

, , - - . , - , , , -. .

, SSL . , MAC- .

. . . , , , , , .

+3

, , OpenNETCF.AppSettings Windows Mobile 5 VS2005.

OpenNETCF Smart Device Framework www.opennetcf.com .

, VS2008/CF3.5.

0

Source: https://habr.com/ru/post/1741858/


All Articles