MD5 Thing

This is a discussion on MD5 Thing within the Tech Board forums, part of the Community Boards category; Can someone please explain to me what this means It would be nice if someone could translate it to PHP ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    21

    MD5 Thing

    Can someone please explain to me what this means
    It would be nice if someone could translate it to PHP
    PHP only has a md5() function
    Code:
       #define AIM_MD5_STRING "AOL Instant Messenger (SM)"
    
       /* calculate md5-hash to send to server */
       md5_init(&state);
       md5_append(&state, (const md5_byte_t *)authkey, strlen(authkey));
       md5_append(&state, (const md5_byte_t *)passwd, strlen(passwd));
       md5_append(&state, (const md5_byte_t *)AIM_MD5_STRING, strlen(AIM_MD5_STRING));
       md5_finish(&state, (md5_byte_t *)auth_hash);
     
       /* Now we ready send to server auth_hash array (16 bytes long) */
    *edit
    maybe this link will help:
    http://www.rabbitsemiconductor.com/d...N209/TN209.pdf
    i do not understand their definition of what the functions does
    Last edited by digitaltsai; 04-12-2006 at 05:41 PM.

  2. #2
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    looks like it initializes an md5 hash to a certain state, adds the authkey, password, and "AOL Instant Messenger (SM)" to it, then finishes it... dunno how... maybe it's putting it into auth_hash because the next line of code implies that after it does that little dance it has an array ready to send to the server...?

    btw, I didn't check the PDF... PDF links are on my s-list for now.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    21
    Ah, found out what it does
    It just does this in PHP
    Code:
    <?php
    md5($key . $password . "AOL Instant Messenger (SM)");
    ?>
    Adds the strings together then does md5 crap on it all combined

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MD5 with variables in C
    By alex08 in forum C Programming
    Replies: 1
    Last Post: 04-07-2009, 06:48 PM
  2. MD5 search, speed...
    By plan7 in forum C Programming
    Replies: 0
    Last Post: 06-29-2008, 07:47 AM
  3. Pause/idle thing
    By freedik in forum Windows Programming
    Replies: 13
    Last Post: 08-22-2003, 09:46 AM
  4. A very strange thing
    By gustavosserra in forum C++ Programming
    Replies: 4
    Last Post: 04-15-2003, 12:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21