Calculations for HTTP Digest authentication.
| See Also | http://www.faqs.org/rfcs/rfc2617.html | |
| Function | calcHA1 | Compute H(A1) from RFC 2617. | 
| Function | calcHA2 | Compute H(A2) from RFC 2617. | 
| Function | calcResponse | Compute the digest for the given parameters. | 
Compute H(A1) from RFC 2617.
| Parameters | pszAlg | The name of the algorithm to use to calculate the digest. Currently supported are md5, md5-sess, and sha. | 
| pszUserName | The username | |
| pszRealm | The realm | |
| pszPassword | The password | |
| pszNonce | The nonce | |
| pszCNonce | The cnonce | |
| preHA1 | If available this is a str containing a previously calculated H(A1) as a 
hex string.  If this is given then the values for pszUserName, pszRealm, 
and pszPassword must be Noneand are ignored. | 
Compute H(A2) from RFC 2617.
| Parameters | pszAlg | The name of the algorithm to use to calculate the digest. Currently supported are md5, md5-sess, and sha. | 
| pszMethod | The request method. | |
| pszDigestUri | The request URI. | |
| pszQop | The Quality-of-Protection value. | |
| pszHEntity | The hash of the entity body or NoneifpszQopis not'auth-int'. | |
| Returns | The hash of the A2 value for the calculation of the response digest. | |