Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert an object array to string Pin
srabik18-Sep-08 13:18
srabik18-Sep-08 13:18 
AnswerRe: How to convert an object array to string Pin
Paul Conrad18-Sep-08 7:46
professionalPaul Conrad18-Sep-08 7:46 
Question[Message Deleted] Pin
soniaiq18-Sep-08 7:59
soniaiq18-Sep-08 7:59 
AnswerRe: How to convert an object array to string Pin
Paul Conrad18-Sep-08 8:04
professionalPaul Conrad18-Sep-08 8:04 
GeneralRe: How to convert an object array to string Pin
soniaiq18-Sep-08 8:15
soniaiq18-Sep-08 8:15 
GeneralRe: How to convert an object array to string Pin
Paul Conrad18-Sep-08 8:16
professionalPaul Conrad18-Sep-08 8:16 
QuestionStartup Project in VS2005 Pin
Vimalsoft(Pty) Ltd18-Sep-08 6:53
professionalVimalsoft(Pty) Ltd18-Sep-08 6:53 
QuestionSalted hash - Storing Salt In password or a seperate field [modified] Pin
DotNetWWW18-Sep-08 6:41
DotNetWWW18-Sep-08 6:41 
Hi all ,
As you know , when implementing salted hash technique , we go through the following steps:
1)Generate a random salt using classes in Cryptography namespace.
2)Get Password
3)combine password and salt and hash it
4)Storing the salt in a field called SALT.
5)Storing the hashed value in a field Called Password
Also we have a field called Username.
When Authenticating , we follow these steps:
1)Get Username
2)Get Password
3)Combine entered password with salt in database
4)Hash it and then compare it to Password
5)If both matches , the user is valid.

My question is that is it possible to Store salt inside password field instead of creating a seperate field for salt?So if attcker breaks into DB , he cannot extract the salt value and will not know what salt is.

And another question is that is it a good idea to also Salt-Hash username?If yes , how do you implement this?

Note that I use a uniqe salt for each password.

Thanks in advance.

modified on Thursday, September 18, 2008 12:49 PM

AnswerRe: Salted hash - Storing Salt In password or a seperate field Pin
N a v a n e e t h18-Sep-08 7:12
N a v a n e e t h18-Sep-08 7:12 
GeneralRe: Salted hash - Storing Salt In password or a seperate field Pin
Paul Conrad18-Sep-08 7:48
professionalPaul Conrad18-Sep-08 7:48 
GeneralRe: Salted hash - Storing Salt In password or a seperate field Pin
DotNetWWW18-Sep-08 8:51
DotNetWWW18-Sep-08 8:51 
GeneralRe: Salted hash - Storing Salt In password or a seperate field Pin
N a v a n e e t h18-Sep-08 18:20
N a v a n e e t h18-Sep-08 18:20 
AnswerRe: Salted hash - Storing Salt In password or a seperate field Pin
Paul Conrad18-Sep-08 7:49
professionalPaul Conrad18-Sep-08 7:49 
AnswerRe: Salted hash - Storing Salt In password or a seperate field Pin
Guffa18-Sep-08 9:33
Guffa18-Sep-08 9:33 
QuestionWhere's my (computer's) memory gone? Pin
Rob Philpott18-Sep-08 5:32
Rob Philpott18-Sep-08 5:32 
AnswerRe: Where's my (computer's) memory gone? Pin
Mark Salsbery18-Sep-08 6:41
Mark Salsbery18-Sep-08 6:41 
AnswerRe: Where's my (computer's) memory gone? Pin
Alan N18-Sep-08 6:52
Alan N18-Sep-08 6:52 
GeneralRe: Where's my (computer's) memory gone? Pin
Rob Philpott18-Sep-08 6:58
Rob Philpott18-Sep-08 6:58 
Questioninsight on data recording to msaccess Pin
djjedi18-Sep-08 5:16
djjedi18-Sep-08 5:16 
QuestionHow to Compare the two database tables(table1,Table2) and update the difference into (table2) using c# Pin
bruze18-Sep-08 5:08
bruze18-Sep-08 5:08 
QuestionSetting selected controls programatically. Pin
djjedi18-Sep-08 5:08
djjedi18-Sep-08 5:08 
AnswerRe: Setting selected controls programatically. Pin
Alan N18-Sep-08 7:23
Alan N18-Sep-08 7:23 
Question64-bit Programming Pin
HosamAly18-Sep-08 5:00
HosamAly18-Sep-08 5:00 
AnswerRe: 64-bit Programming Pin
Giorgi Dalakishvili18-Sep-08 5:04
mentorGiorgi Dalakishvili18-Sep-08 5:04 
Questionhow can i increse the size of the picture box with picture? Pin
maifs18-Sep-08 4:18
maifs18-Sep-08 4:18 

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.