Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
QuestionOut of interest, how many of you have used SecureString for passwords? Pin
Rob Philpott23-May-14 4:24
Rob Philpott23-May-14 4:24 
AnswerRe: Out of interest, how many of you have used SecureString for passwords? Pin
Eddy Vluggen23-May-14 5:13
professionalEddy Vluggen23-May-14 5:13 
AnswerRe: Out of interest, how many of you have used SecureString for passwords? Pin
Gilbert Consellado24-May-14 0:20
professionalGilbert Consellado24-May-14 0:20 
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
harold aptroot24-May-14 2:05
harold aptroot24-May-14 2:05 
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
Gilbert Consellado24-May-14 2:23
professionalGilbert Consellado24-May-14 2:23 
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
harold aptroot24-May-14 3:00
harold aptroot24-May-14 3:00 
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
Gilbert Consellado27-May-14 3:38
professionalGilbert Consellado27-May-14 3:38 
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
harold aptroot27-May-14 4:48
harold aptroot27-May-14 4:48 
You can't hide anything from the user. A user can debug your program, or run it through an emulator, or disassemble it and step through it mentally. "Anti-debugging" tricks don't change that - you can choose different code paths but the user can override it, you can have sneaky behaviour depending on self modifying code and so on, but the user can see right through it, no matter what you do the user can override it. The user is essentially a god and your code runs completely at their mercy. You can slow them down or trick them, but at the end of the day you can not stop them. If your program can get its hand on the connection string, so can the user, because the program tells them exactly how to do it - it's literally a list of instructions saying how, which also explains why encryption is in this case just obfuscation: you're also providing the instructions to undo it.

"secure"string doesn't pretend to stop users, it pretends to stop other programs, but there's not much difference. The only thing a program can't do (in theory anyway) is click a UAC dialog, and you don't even need that.

Advice: accept that anything that could be done with the privileges and information of the program, will be done by a user. If they're not allowed to do something, then the program can't be allowed to do it either, and that must be enforced server-side.
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
Eddy Vluggen25-May-14 2:44
professionalEddy Vluggen25-May-14 2:44 
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
Gilbert Consellado27-May-14 3:40
professionalGilbert Consellado27-May-14 3:40 
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
Eddy Vluggen27-May-14 7:41
professionalEddy Vluggen27-May-14 7:41 
AnswerRe: Out of interest, how many of you have used SecureString for passwords? Pin
BobJanova27-May-14 2:54
BobJanova27-May-14 2:54 
QuestionUser Logon for Windows Applications Best Practices Pin
Aaron Hartley23-May-14 3:56
Aaron Hartley23-May-14 3:56 
AnswerRe: User Logon for Windows Applications Best Practices Pin
Rob Philpott23-May-14 4:22
Rob Philpott23-May-14 4:22 
AnswerRe: User Logon for Windows Applications Best Practices Pin
Eddy Vluggen23-May-14 5:16
professionalEddy Vluggen23-May-14 5:16 
GeneralRe: User Logon for Windows Applications Best Practices Pin
Aaron Hartley23-May-14 6:52
Aaron Hartley23-May-14 6:52 
GeneralRe: User Logon for Windows Applications Best Practices Pin
Eddy Vluggen23-May-14 7:19
professionalEddy Vluggen23-May-14 7:19 
QuestionHow to make a REST request with certificate, private key and password in C#? Pin
rune00723-May-14 0:50
rune00723-May-14 0:50 
QuestionResizing a Picture Pin
megha_p22-May-14 23:22
megha_p22-May-14 23:22 
AnswerRe: Resizing a Picture Pin
OriginalGriff23-May-14 0:05
mveOriginalGriff23-May-14 0:05 
AnswerRe: Resizing a Picture Pin
Emre Ataseven25-May-14 10:06
professionalEmre Ataseven25-May-14 10:06 
Questionhow can i resize my picturebox image with less pixels? Pin
megha_p22-May-14 22:00
megha_p22-May-14 22:00 
AnswerRe: how can i resize my picturebox image with less pixels? Pin
OriginalGriff22-May-14 22:14
mveOriginalGriff22-May-14 22:14 
AnswerRe: how can i resize my picturebox image with less pixels? Pin
Karen Mitchelle22-May-14 22:21
professionalKaren Mitchelle22-May-14 22:21 
GeneralRe: how can i resize my picturebox image with less pixels? Pin
Pete O'Hanlon22-May-14 22:39
mvePete O'Hanlon22-May-14 22:39 

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.