Php md5, do all strings give the unique codes?

Discussion in 'PHP' started by Tom12361, Sep 26, 2009.

  1. #1
    Is it possible, that md5 would give the same code for 2 different strings?
     
    Tom12361, Sep 26, 2009 IP
  2. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Last edited: Sep 26, 2009
    theapparatus, Sep 26, 2009 IP
  3. orionoreo

    orionoreo Peon

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if i recall its practically impossible... chances are you'll win the lottery before that happens
     
    orionoreo, Sep 26, 2009 IP
  4. Brandon_R

    Brandon_R Peon

    Messages:
    330
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That is not possible and if it was it would defeat the purpose of the md5 hashing a string/file.
     
    Brandon_R, Sep 27, 2009 IP
  5. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I must be imaging the proof of concept link up there and all those "do not use as it doesn't work" quotes on the wikipedia page.

    *sigh*
     
    theapparatus, Sep 27, 2009 IP
  6. goliath

    goliath Active Member

    Messages:
    308
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #6
    lol.

    Impossible is having a unique code for every conceivable string and they're all 32 characters long. The person who wrote that algorithm would be winning some serious prizes.
     
    goliath, Sep 28, 2009 IP
  7. noumenon

    noumenon Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    the very last words spoken on earth, just before it explodes, will be those of a specialist who says: "technically it's not possible!" (peter ustinov) :D
     
    noumenon, Sep 29, 2009 IP
  8. MattyAsia

    MattyAsia Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It's just so rare, and the colliding string would have to be so obscure, it really doesn't make a difference.
    Sure, 2 may have the same MD5:
    Password: applegoods1965
    Password: v5$vfo6ic54k6w$GV^b3owbCFFF#$rt5k,45wr%C$34o5k3l%C$3lkt4trp3c5k4#............

    But the second password isn't going to be any easier to break than the first...
     
    MattyAsia, Oct 30, 2009 IP