Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
AnswerRe: MD5 algorithm issue Pin
Tom Deketelaere6-Jan-09 0:15
professionalTom Deketelaere6-Jan-09 0:15 
GeneralRe: MD5 algorithm issue Pin
George_George6-Jan-09 0:28
George_George6-Jan-09 0:28 
GeneralRe: MD5 algorithm issue Pin
Tom Deketelaere6-Jan-09 1:36
professionalTom Deketelaere6-Jan-09 1:36 
GeneralRe: MD5 algorithm issue Pin
George_George10-Jan-09 2:29
George_George10-Jan-09 2:29 
GeneralRe: MD5 algorithm issue Pin
Tom Deketelaere11-Jan-09 21:28
professionalTom Deketelaere11-Jan-09 21:28 
AnswerRe: MD5 algorithm issue Pin
Abhijit Jana6-Jan-09 1:28
professionalAbhijit Jana6-Jan-09 1:28 
GeneralRe: MD5 algorithm issue Pin
George_George10-Jan-09 2:23
George_George10-Jan-09 2:23 
AnswerRe: MD5 algorithm issue Pin
DaveyM696-Jan-09 10:55
professionalDaveyM696-Jan-09 10:55 
Don't know if you've sorted this or not George but thought I'd throw in my 2c worth.

As you know MD5 is 128bit (16 bytes) so there's no way of getting a unique value into an Int32. The same applies to Int64.GetHashCode() method - if you test it, you'll find you will get identical results for different values as it's impossible to make 64 fit into 32.

There are 32 bit hash algorithms out there - if it's just for file checking etc then it will be good enough, but if it's for security then forget it. If it's just for the sake of turning an arbitary string into an int then use GetHashCode() on your string.

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: MD5 algorithm issue Pin
George_George10-Jan-09 2:21
George_George10-Jan-09 2:21 
GeneralRe: MD5 algorithm issue Pin
DaveyM6910-Jan-09 8:36
professionalDaveyM6910-Jan-09 8:36 
AnswerRe: MD5 algorithm issue Pin
Jon Rista6-Jan-09 14:40
Jon Rista6-Jan-09 14:40 
GeneralRe: MD5 algorithm issue Pin
George_George10-Jan-09 2:25
George_George10-Jan-09 2:25 
GeneralRe: MD5 algorithm issue Pin
Jon Rista10-Jan-09 13:24
Jon Rista10-Jan-09 13:24 
AnswerRe: MD5 algorithm issue Pin
Hamid_RT15-Jan-09 2:24
Hamid_RT15-Jan-09 2:24 
QuestionSQL Merge Pin
ellllllllie5-Jan-09 23:03
ellllllllie5-Jan-09 23:03 
AnswerRe: SQL Merge Pin
Wendelius5-Jan-09 23:42
mentorWendelius5-Jan-09 23:42 
AnswerRe: SQL Merge Pin
SeMartens5-Jan-09 23:44
SeMartens5-Jan-09 23:44 
QuestionWho is coneected with My Mechine Pin
nidheeshkayal5-Jan-09 22:52
nidheeshkayal5-Jan-09 22:52 
AnswerRe: Who is coneected with My Mechine Pin
rah_sin5-Jan-09 23:24
professionalrah_sin5-Jan-09 23:24 
GeneralRe: Who is coneected with My Mechine Pin
nidheeshkayal5-Jan-09 23:51
nidheeshkayal5-Jan-09 23:51 
GeneralRe: Who is coneected with My Mechine Pin
EliottA6-Jan-09 2:01
EliottA6-Jan-09 2:01 
Question"Another" one automation error... Pin
Member 28952165-Jan-09 22:29
Member 28952165-Jan-09 22:29 
AnswerRe: "Another" one automation error... Pin
Simon P Stevens5-Jan-09 23:01
Simon P Stevens5-Jan-09 23:01 
GeneralRe: "Another" one automation error... Pin
Member 28952165-Jan-09 23:16
Member 28952165-Jan-09 23:16 
GeneralRe: "Another" one automation error... Pin
Simon P Stevens5-Jan-09 23:34
Simon P Stevens5-Jan-09 23:34 

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.