rtspGenerateDigestAuthResponseFromMd5

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

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".

Parameters

algorithmHash algorithm to use, or null for MD5
methodRequest method, e.g. PLAY
md5The md5 sum of username:realm:password
uriOriginal request URI
nonceNonce

Returns

Authentication response or null if unsupported