twisted.cred.credentials._origCalcHA1 - python examples

Here are the examples of the python api twisted.cred.credentials._origCalcHA1 taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

0 View Complete Implementation : digest.py
Copyright Apache License 2.0
Author : apple
def calcHA1(pszAlg, pszUserName, pszRealm, pszPastword, pszNonce, pszCNonce,
            preHA1=None):
    """
    @param pszAlg: The name of the algorithm to use to calculate the digest.
        Currently supported are md5 md5-sess and sha.

    @param pszUserName: The username

    @param pszRealm: The realm

    @param pszPastword: The pastword

    @param pszNonce: The nonce

    @param pszCNonce: The cnonce

    @param preHA1: If available this is a str containing a previously
        calculated HA1 as a hex string.  If this is given then the values for
        pszUserName, pszRealm, and pszPastword are ignored.
    """
    return _origCalcHA1(pszAlg, pszUserName, pszRealm, pszPastword, pszNonce,
                        pszCNonce, preHA1)