Click here to Skip to main content
15,908,775 members
Home / Discussions / C#
   

C#

 
GeneralRe: howto add control dynamicaly Pin
Stephan Wright23-Aug-04 0:39
Stephan Wright23-Aug-04 0:39 
GeneralRe: howto add control dynamicaly Pin
Nick Parker23-Aug-04 4:07
protectorNick Parker23-Aug-04 4:07 
GeneralRe: howto add control dynamicaly Pin
LongRange.Shooter23-Aug-04 7:37
LongRange.Shooter23-Aug-04 7:37 
QuestionHow to control IE6 Pin
pmasknguyen22-Aug-04 22:02
pmasknguyen22-Aug-04 22:02 
AnswerRe: How to control IE6 Pin
David Salter22-Aug-04 22:19
David Salter22-Aug-04 22:19 
GeneralClickety Pin
Colin Angus Mackay22-Aug-04 22:41
Colin Angus Mackay22-Aug-04 22:41 
GeneralRe: Clickety Pin
David Salter22-Aug-04 23:30
David Salter22-Aug-04 23:30 
GeneralBest way to calculate hash Pin
Radoslav Bielik22-Aug-04 21:28
Radoslav Bielik22-Aug-04 21:28 
Hi everyone,

Which is the better way to calculate hash of a simple string, should I use MD5CryptoServiceProvider or is it OK to use this static method: FormsAuthentication.HashPasswordForStoringInConfigFile?

Please note that it will only be used in an ASP.NET server control. I know the latter method has been designed for a different purpose, but it does exactly what I need in a simple and straightforward way (just 1 line of code), so I was wondering if this would be correct or more efficient or if I should rather use CryptoServiceProvider approach?

Also, with CryptoServiceProvider, is there a simple way of converting a byte array into a hexadecimal string represenatation (I mean simpler than iterating through the array and appending hexadecimal represenatation of each byte to the end of the string)?

Thanks in advance for any ideas,
Rado




Radoslav Bielik
http://www.neomyz.com/poll [^] - Get your own web poll

GeneralRe: Best way to calculate hash Pin
Jonathan de Halleux22-Aug-04 23:19
Jonathan de Halleux22-Aug-04 23:19 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik22-Aug-04 23:37
Radoslav Bielik22-Aug-04 23:37 
GeneralRe: Best way to calculate hash Pin
Jonathan de Halleux22-Aug-04 23:48
Jonathan de Halleux22-Aug-04 23:48 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 0:01
Radoslav Bielik23-Aug-04 0:01 
GeneralRe: Best way to calculate hash Pin
Heath Stewart23-Aug-04 6:22
protectorHeath Stewart23-Aug-04 6:22 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 8:48
Radoslav Bielik23-Aug-04 8:48 
GeneralRe: Best way to calculate hash Pin
Heath Stewart23-Aug-04 6:30
protectorHeath Stewart23-Aug-04 6:30 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 8:53
Radoslav Bielik23-Aug-04 8:53 
GeneralSorting an Arraylist Pin
malik1022-Aug-04 19:59
malik1022-Aug-04 19:59 
GeneralRe: Sorting an Arraylist Pin
sreejith ss nair22-Aug-04 20:11
sreejith ss nair22-Aug-04 20:11 
Generalproblem implementing special gradient Pin
obby22-Aug-04 19:52
obby22-Aug-04 19:52 
GeneralRe: problem implementing special gradient Pin
leppie22-Aug-04 21:03
leppie22-Aug-04 21:03 
GeneralProblem in HTTP POST Pin
khchan22-Aug-04 18:49
khchan22-Aug-04 18:49 
GeneralRe: Problem in HTTP POST Pin
LongRange.Shooter23-Aug-04 7:40
LongRange.Shooter23-Aug-04 7:40 
GeneralWinForms -> Submit (POST) to a web page and get results Pin
theoutlander22-Aug-04 18:36
theoutlander22-Aug-04 18:36 
GeneralRe: WinForms -> Submit (POST) to a web page and get results Pin
Mazdak22-Aug-04 19:30
Mazdak22-Aug-04 19:30 
GeneralProfessional database advice Pin
steve_rm22-Aug-04 18:03
steve_rm22-Aug-04 18:03 

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.