[Rets-dev] Problems with Digest....

Dave Dribin dribin at crt.realtors.org
Wed Mar 15 14:04:26 CST 2006


On Mar 15, 2006, at 1:13 PM, Michael McCord wrote:
> I am having some problems implementing the Digest authentication  
> defined by RETS. I believe it stems from my confusion after reading  
> RFC2617…

I wrote a digest calculator to help debug RFC 2617 issues.  You plug  
in the values, and it will compute the response for you, also showing  
you the intermediate A1 and A2 values:

   <http://www.crt.realtors.org/projects/rets/variman/support/ 
digest.php>

The PHP code behind the scenes to compute the digest is:

    $a1 = "$username:$realm:$password";
    $a1_hashed = md5($a1);
    $a2 = "$method:$uri";
    $a2_hashed = md5($a2);
    if ($qop == "auth")
      $response_unhashed =  "$a1_hashed:$nonce:$nc:$cnonce:$qop: 
$a2_hashed";
    else
      $response_unhashed = "$a1_hashed:$nonce:$a2_hashed";
    $response = md5($response_unhashed);

I don't know VB, but you should be able to get an idea how to  
implement it from this PHP.

-Dave



More information about the Rets-dev mailing list