Click here to Skip to main content
15,906,574 members
Home / Discussions / C#
   

C#

 
GeneralRe: AutoData c# winform app Pin
Killzone DeathMan17-Oct-12 4:38
Killzone DeathMan17-Oct-12 4:38 
GeneralRe: AutoData c# winform app Pin
Pete O'Hanlon17-Oct-12 4:51
mvePete O'Hanlon17-Oct-12 4:51 
GeneralRe: AutoData c# winform app Pin
Killzone DeathMan17-Oct-12 4:53
Killzone DeathMan17-Oct-12 4:53 
Questionc# Pin
somasaedi16-Oct-12 21:58
somasaedi16-Oct-12 21:58 
AnswerRe: c# PinPopular
Pete O'Hanlon16-Oct-12 22:07
mvePete O'Hanlon16-Oct-12 22:07 
AnswerRe: c# Pin
Simon_Whale16-Oct-12 22:27
Simon_Whale16-Oct-12 22:27 
GeneralRe: c# Pin
Mycroft Holmes16-Oct-12 22:50
professionalMycroft Holmes16-Oct-12 22:50 
AnswerRe: c# Pin
KiranKumar Roy17-Oct-12 0:15
KiranKumar Roy17-Oct-12 0:15 
AnswerMy vote of 1 Pin
Keith Barrow17-Oct-12 1:56
professionalKeith Barrow17-Oct-12 1:56 
QuestionRe: c# Pin
Ravi Bhavnani17-Oct-12 4:54
professionalRavi Bhavnani17-Oct-12 4:54 
AnswerRe: c# Pin
Akinmade Bond17-Oct-12 9:11
professionalAkinmade Bond17-Oct-12 9:11 
QuestionAbout MVC Pin
Karam Chand Sharma16-Oct-12 20:22
Karam Chand Sharma16-Oct-12 20:22 
AnswerRe: About MVC Pin
Abhinav S16-Oct-12 20:32
Abhinav S16-Oct-12 20:32 
AnswerRe: About MVC Pin
Akinmade Bond17-Oct-12 9:13
professionalAkinmade Bond17-Oct-12 9:13 
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 

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.