Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
QuestionConnecting to a database and transferring data securely Pin
User 940410616-Oct-12 8:59
User 940410616-Oct-12 8:59 
AnswerRe: Connecting to a database and transferring data securely Pin
SledgeHammer0116-Oct-12 10:43
SledgeHammer0116-Oct-12 10:43 
GeneralRe: Connecting to a database and transferring data securely Pin
Mycroft Holmes16-Oct-12 22:53
professionalMycroft Holmes16-Oct-12 22:53 
GeneralRe: Connecting to a database and transferring data securely Pin
BobJanova17-Oct-12 1:46
BobJanova17-Oct-12 1:46 
GeneralRe: Connecting to a database and transferring data securely Pin
SledgeHammer0117-Oct-12 4:49
SledgeHammer0117-Oct-12 4:49 
AnswerRe: Connecting to a database and transferring data securely Pin
Eddy Vluggen16-Oct-12 12:19
professionalEddy Vluggen16-Oct-12 12:19 
AnswerRe: Connecting to a database and transferring data securely Pin
Bernhard Hiller16-Oct-12 21:33
Bernhard Hiller16-Oct-12 21:33 
AnswerRe: Connecting to a database and transferring data securely Pin
BobJanova17-Oct-12 1:51
BobJanova17-Oct-12 1:51 
What are you trying to secure against?

If you are using a single key for all instances of the application, and including it in the application distribution, then it is pretty straightforward for a hacker to get hold of the key (or login credentials) and contact the database with it.

To avoid interception or viewing of data as it's on the network, you should always use SSL or something similar (i.e. an encrypted channel using a public key encryption algorithm at some point) for the transfer. If you set up a web service or HTTP server it's straightforward to use SSL. This prevents someone from sniffing the packets of someone else's data, but it doesn't affect their ability to decompile and get the credentials.

The only real way to avoid that is to require people to log in, so the application doesn't have the credentials at all. That's obviously annoying and can often have a bigger cost than the security concern.

It's usually a good idea to proxy a database by having a service layer (either a web service or a TCP server application) in between. That insulates you from a particular database implementation, and it also allows you to restrict the actions a user can do, even with the credentials. If, for example, your concern is corruption of data as opposed to viewing it, this application can sanity check any requested updates to the database.
GeneralRe: Connecting to a database and transferring data securely Pin
User 940410617-Oct-12 9:45
User 940410617-Oct-12 9:45 
GeneralRe: Connecting to a database and transferring data securely Pin
SledgeHammer0117-Oct-12 10:02
SledgeHammer0117-Oct-12 10:02 
GeneralRe: Connecting to a database and transferring data securely Pin
User 940410617-Oct-12 10:34
User 940410617-Oct-12 10:34 
Questionsend email html format in email body asp.net c# Pin
rahultiway1916-Oct-12 7:51
rahultiway1916-Oct-12 7:51 
AnswerRe: send email html format in email body asp.net c# Pin
fjdiewornncalwe16-Oct-12 8:33
professionalfjdiewornncalwe16-Oct-12 8:33 
AnswerRe: send email html format in email body asp.net c# Pin
Bernhard Hiller16-Oct-12 21:29
Bernhard Hiller16-Oct-12 21:29 
QuestionFunction Accepting Parameters of Any Type Pin
ASPnoob16-Oct-12 2:17
ASPnoob16-Oct-12 2:17 
AnswerRe: Function Accepting Parameters of Any Type Pin
Pete O'Hanlon16-Oct-12 2:26
mvePete O'Hanlon16-Oct-12 2:26 
GeneralRe: Function Accepting Parameters of Any Type Pin
Dave Doknjas16-Oct-12 11:14
Dave Doknjas16-Oct-12 11:14 
AnswerRe: Function Accepting Parameters of Any Type Pin
Eddy Vluggen16-Oct-12 3:01
professionalEddy Vluggen16-Oct-12 3:01 
Questionhow to get an data from data Gride view in C# Pin
vinodnchavan15-Oct-12 21:39
vinodnchavan15-Oct-12 21:39 
AnswerRe: how to get an data from data Gride view in C# Pin
Richard MacCutchan15-Oct-12 22:16
mveRichard MacCutchan15-Oct-12 22:16 
AnswerRe: how to get an data from data Gride view in C# Pin
Abhinav S16-Oct-12 20:36
Abhinav S16-Oct-12 20:36 
QuestionSuggest a solution. Pin
Ambika Jadhav15-Oct-12 20:36
Ambika Jadhav15-Oct-12 20:36 
AnswerRe: Suggest a solution. Pin
Pete O'Hanlon15-Oct-12 22:10
mvePete O'Hanlon15-Oct-12 22:10 
AnswerRe: Suggest a solution. Pin
Eddy Vluggen16-Oct-12 2:03
professionalEddy Vluggen16-Oct-12 2:03 
GeneralRe: Suggest a solution. Pin
Pete O'Hanlon16-Oct-12 2:42
mvePete O'Hanlon16-Oct-12 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.