403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/cred/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/cred/_digest.pyc
ó
[³XMc@sYdZddlmZmZied6ed6ed6Zd	d„Zd„Zd„Zd	S(
s^
Calculations for HTTP Digest authentication.

@see: U{http://www.faqs.org/rfcs/rfc2617.html}
iÿÿÿÿ(tmd5tsha1Rsmd5-sesstshac	Cs|r'|s|s|r'tdƒ‚n|dkrt|ƒ}|j|ƒ|jdƒ|j|ƒ|jdƒ|j|ƒ|jƒ}n|jdƒ}|dkrt|ƒ}|j|ƒ|jdƒ|j|ƒ|jdƒ|j|ƒ|jƒ}n|jdƒS(s:
    Compute H(A1) from RFC 2617.

    @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 pszPassword: The password
    @param pszNonce: The nonce
    @param pszCNonce: The cnonce

    @param 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 C{None} and are ignored.
    sPpreHA1 is incompatible with the pszUserName, pszRealm, and pszPassword argumentst:thexsmd5-sessN(t	TypeErrortNonet
algorithmstupdatetdigesttdecodetencode(	tpszAlgtpszUserNametpszRealmtpszPasswordtpszNoncet	pszCNoncetpreHA1tmtHA1((s8/usr/lib/python2.7/dist-packages/twisted/cred/_digest.pytcalcHA1!s(











cCspt|ƒ}|j|ƒ|jdƒ|j|ƒ|dkr]|jdƒ|j|ƒn|jƒjdƒS(s÷
    Compute H(A2) from RFC 2617.

    @param pszAlg: The name of the algorithm to use to calculate the digest.
        Currently supported are md5, md5-sess, and sha.
    @param pszMethod: The request method.
    @param pszDigestUri: The request URI.
    @param pszQop: The Quality-of-Protection value.
    @param pszHEntity: The hash of the entity body or C{None} if C{pszQop} is
        not C{'auth-int'}.
    @return: The hash of the A2 value for the calculation of the response
        digest.
    Rsauth-intR(RRR	R(talgot	pszMethodtpszDigestUritpszQopt
pszHEntityR((s8/usr/lib/python2.7/dist-packages/twisted/cred/_digest.pytcalcHA2Ps




c	CsÄt|ƒ}|j|ƒ|jdƒ|j|ƒ|jdƒ|rž|rž|j|ƒ|jdƒ|j|ƒ|jdƒ|j|ƒ|jdƒn|j|ƒ|jƒjdƒ}|S(s
    Compute the digest for the given parameters.

    @param HA1: The H(A1) value, as computed by L{calcHA1}.
    @param HA2: The H(A2) value, as computed by L{calcHA2}.
    @param pszNonce: The challenge nonce.
    @param pszNonceCount: The (client) nonce count value for this response.
    @param pszCNonce: The client nonce.
    @param pszQop: The Quality-of-Protection value.
    RR(RRR	R(	RtHA2RRt
pszNonceCountRRRtrespHash((s8/usr/lib/python2.7/dist-packages/twisted/cred/_digest.pytcalcResponsehs










N(	t__doc__ttwisted.python.hashlibRRRRRRR(((s8/usr/lib/python2.7/dist-packages/twisted/cred/_digest.pyt<module>	s	
.	

Youez - 2016 - github.com/yon3zu
LinuXploit