i can't figure out how to use MD5()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence

    i can't figure out how to use MD5()

    I do get that MD5() scrambles a password, but how do you then
    unscrable it? I want to get $password from the user, scrable it, then
    append it to every link.
  • Andy Hassall

    #2
    Re: i can't figure out how to use MD5()

    On 17 Aug 2003 14:18:09 -0700, lkrubner@geocit ies.com (lawrence) wrote:
    [color=blue]
    >I do get that MD5() scrambles a password, but how do you then
    >unscrable it?[/color]

    You don't, it's impossible.

    You store the MD5 of the password. Then when a password is entered in the
    future, you MD5 that and compare it with the previously stored MD5. If they
    match, the passwords match. Part of the idea of this is that the original
    password isn't stored, so even if the table was read by crackers the passwords
    wouldn't be revealed.

    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    • jkd

      #3
      Re: i can't figure out how to use MD5()

      The MD5 function can be use to encrypt a password, but there is no PHP
      function to decrypt it. I suppose you could brute force an MD5 hash but then
      why would you want to append that to a link?


      "lawrence" <lkrubner@geoci ties.com> wrote in message
      news:da7e68e8.0 308171318.11a52 82@posting.goog le.com...[color=blue]
      > I do get that MD5() scrambles a password, but how do you then
      > unscrable it? I want to get $password from the user, scrable it, then
      > append it to every link.[/color]



      Comment

      • James

        #4
        Re: i can't figure out how to use MD5()

        On 17 Aug 2003 14:18:09 -0700, lkrubner@geocit ies.com (lawrence) scrawled:
        [color=blue]
        >I do get that MD5() scrambles a password, but how do you then
        >unscrable it? I want to get $password from the user, scrable it, then
        >append it to every link.[/color]

        MD5 isn't an encryption algorithm - it is a checksum algorithm - and
        so is designed to be one way (it's actually a many - one algorithm) so
        two passwords may check sum to the same value (although) this is unlikely
        for such short strings.

        Baggy

        Comment

        Working...