rtspGenerateDigestAuthResponseFromMd5

Calculates the digest auth response from the values given by the server and the md5sum. See RFC2069 for details.

This function is useful when the passwords are not stored in clear text, but instead in the same format as the .htdigest file.

Currently only supported algorithm "md5".

string
rtspGenerateDigestAuthResponseFromMd5
(
string algorithm
,
string method
,
string md5
,
string uri
,
string nonce
)

Parameters

algorithm string

Hash algorithm to use, or null for MD5

method string

Request method, e.g. PLAY

md5 string

The md5 sum of username:realm:password

uri string

Original request URI

nonce string

Nonce

Return Value

Type: string

Authentication response or null if unsupported