[Serusers] MD5
Jan Janak
jan at iptel.org
Thu Aug 26 07:14:41 CEST 2004
On 25-08 13:37, Brian OBrien wrote:
> I have a www-Authenticate.
>
> Www-Authenticate: Digest realm="server.com",
> nonce="411ac7155bd4a57a466c529317257f43c969fafd"
>
>
> username="user",realm="server.com",nonce="411ac7155bd4a57a466c529317257f43c969fafd",response="0a050e02120f490e9c407ccea22058e0",uri="sip:server.com"
>
>
> I am trying to figure out the parameters to:
>
> DigestCalcHA1 and DigestCalcResponse.
The value of nonce and realm parameters must match the digest
challenge above. uri parameter is the Request-URI of the SIP message
containing the digest credentials.
The parameters to DigestCalcHA1 are the username obtained from some
database (this is the value of the username attribute), realm value
obtained from the digest challenge, password from the same database,
the value of the nonce attribute from the digest challenge.
The function will return a string that will then be the input to the
second function, DigestCalcResponse that will calculate the value of
the response attribute.
Exact description of the algorithm can be found in
http://www.ietf.rfc/rfc2617.txt
Jan.
More information about the sr-users
mailing list