Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
Generalvirus over network layer Pin
computer_eng22-Mar-05 22:31
computer_eng22-Mar-05 22:31 
GeneralRe: virus over network layer Pin
leppie22-Mar-05 23:22
leppie22-Mar-05 23:22 
GeneralRe: virus over network layer Pin
Giles23-Mar-05 8:49
Giles23-Mar-05 8:49 
GeneralRe: virus over network layer Pin
leppie23-Mar-05 11:17
leppie23-Mar-05 11:17 
GeneralSecurity of code in view of disassembler Pin
Rama Sharma22-Mar-05 20:56
Rama Sharma22-Mar-05 20:56 
GeneralRe: Security of code in view of disassembler Pin
leppie22-Mar-05 22:42
leppie22-Mar-05 22:42 
Questionhow to check password and user name Pin
Aleyna22-Mar-05 20:38
Aleyna22-Mar-05 20:38 
AnswerRe: how to check password and user name Pin
Jeff Martin23-Mar-05 3:47
Jeff Martin23-Mar-05 3:47 
A few things to consider...

Make sure to use a parameterized query (preferably a stored proc) instead of just a plain query string. I.e.

cmd.CommandText = "usp_GetUserInformation";
cmd.Parameters.Add("@userName", userName); //from username_txt.Text

instead of ...

cmd.CommandText = "select UserName, Password from Users where UserName = '" + username_txt.Text + "'";

The reason for this is to prevent SQL injection attacks.

Another thing...

Don't store the password in plain text in the database. When the user sets up the password, hash it and store the hash. Then when checking the password, hash what they enter the same way and compare it to what is in the db.

Jeff Martin
My Blog
QuestionHow to read system time? Pin
Kiran Satish22-Mar-05 20:28
Kiran Satish22-Mar-05 20:28 
AnswerRe: How to read system time? Pin
Colin Angus Mackay22-Mar-05 20:29
Colin Angus Mackay22-Mar-05 20:29 
GeneralRe: How to read system time? Pin
Kiran Satish22-Mar-05 20:57
Kiran Satish22-Mar-05 20:57 
GeneralRe: How to read system time? Pin
J4amieC23-Mar-05 2:35
J4amieC23-Mar-05 2:35 
GeneralRe: How to read system time? Pin
Kiran Satish23-Mar-05 9:44
Kiran Satish23-Mar-05 9:44 
GeneralBitmaps Pin
Beringer22-Mar-05 18:01
Beringer22-Mar-05 18:01 
GeneralRe: Bitmaps Pin
leppie22-Mar-05 23:24
leppie22-Mar-05 23:24 
GeneralRe: Bitmaps Pin
Judah Gabriel Himango23-Mar-05 6:05
sponsorJudah Gabriel Himango23-Mar-05 6:05 
GeneralStrange "MessageBox" Behavior Pin
Jethro6322-Mar-05 15:19
Jethro6322-Mar-05 15:19 
GeneralRe: Strange "MessageBox" Behavior Pin
Nick Parker22-Mar-05 16:38
protectorNick Parker22-Mar-05 16:38 
GeneralRe: Strange "MessageBox" Behavior Pin
Jethro6323-Mar-05 2:25
Jethro6323-Mar-05 2:25 
GeneralRe: Strange "MessageBox" Behavior Pin
Nick Parker23-Mar-05 5:08
protectorNick Parker23-Mar-05 5:08 
GeneralRe: Strange "MessageBox" Behavior Pin
Jethro6324-Mar-05 2:59
Jethro6324-Mar-05 2:59 
GeneralRe: Strange "MessageBox" Behavior Pin
Jethro637-Apr-05 2:04
Jethro637-Apr-05 2:04 
GeneralBarcode Generator Pin
sardonicus22-Mar-05 13:28
sardonicus22-Mar-05 13:28 
GeneralRe: Barcode Generator Pin
Nick Parker22-Mar-05 16:40
protectorNick Parker22-Mar-05 16:40 
GeneralExtensibility project in c# .NET for Word2003 Pin
frenchyyy22-Mar-05 11:41
frenchyyy22-Mar-05 11:41 

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.