(realm, algorithm=MD5, nonce=None, qop=AUTH)
return 'Digest realm="%s", nonce="%s", algorithm="%s", qop="%s"' % (
        realm, nonce, algorithm, qop
    )
Challenges the client for a Digest authentication.
Challenges the client for a Digest authentication.
Challenges the client for a Digest authentication .
def digestAuth(realm, algorithm=MD5, nonce=None, qop=AUTH):
    """Challenges the client for a Digest authentication."""

    assert algorithm in SUPPORTED_ALGORITHM
    assert qop in SUPPORTED_QOP

    if nonce is None:
        nonce = calculateNonce(realm, algorithm)

    return 'Digest realm="%s", nonce="%s", algorithm="%s", qop="%s"' % (
        realm, nonce, algorithm, qop
    )
def digestAuth ( realm , algorithm = MD5 , nonce = None , qop = AUTH ) : assert algorithm in SUPPORTED_ALGORITHM assert qop in SUPPORTED_QOP if nonce is None : nonce = calculateNonce ( realm , algorithm ) return 'Digest realm="%s", nonce="%s", algorithm="%s", qop="%s"' % ( realm , nonce , algorithm , qop )