Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
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 
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 
DotNetWWW wrote:
that is it possible to Store salt inside password field instead of creating a seperate field for salt?


Yes. That's a good method. Steps could be,

1 - Generate random salt
2 - Append salt with the plain text and calculate hash
3 - Append salt bytes with the hashed bytes and return base64 string.

For verifying you can follow,

1 - Get the hash bytes from base64 string.
2 - Extract original salt from the byte array. Usually hash algorithm will have a predefined hash size. MD5 uses 128 bit hashing.
3 - Calculate hash again with the plain text and extracted salt.
4 - Verify the newly created hash and the original one.

DotNetWWW wrote:
is that is it a good idea to also Salt-Hash username


I think it is not necessary.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

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 
AnswerRe: how can i increse the size of the picture box with picture? Pin
Mbah Dhaim18-Sep-08 4:27
Mbah Dhaim18-Sep-08 4:27 

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.