403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/Crypto/Hash/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyc
Ñò
¥nJc@sMdZdZddkZd„ZdZddd„ƒYZddd„ZdS(	séHMAC (Keyed-Hashing for Message Authentication) Python module.

Implements the HMAC algorithm as described by RFC 2104.

This is just a copy of the Python 2.2 HMAC module, modified to work when
used on versions of Python before 2.2.
s0$Id: HMAC.py,v 1.5 2002/07/25 17:19:02 z3p Exp $iÿÿÿÿNcCsditd„||ƒƒS(sKUtility method. XOR the two strings s1 and s2 (must have same length).
    tcSstt|ƒt|ƒAƒS((tchrtord(txty((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyt<lambda>s(tjointmap(ts1ts2((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyt_strxor
stHMACcBsAeZdZddd„Zd„Zd„Zd„Zd„ZRS(s_RFC2104 HMAC class.

    This supports the API for Cryptographic Hash Functions (PEP 247).
    c	Cs:|djoddk}|}n||_|iƒ|_|iƒ|_y|i|_Wn+tj
ot|ii	ƒƒ|_nXd}d|}d|}t|ƒ|jo|i|ƒi	ƒ}n|t
dƒ|t|ƒ}|iit||ƒƒ|iit||ƒƒ|o|i|ƒndS(sÝCreate a new HMAC object.

        key:       key for the keyed hash object.
        msg:       Initial input for the hash, if provided.
        digestmod: A module supporting PEP 247. Defaults to the md5 module.
        iÿÿÿÿNi@t6s\i(
tNonetMD5t	digestmodtnewtoutertinnertdigest_sizetAttributeErrortlentdigestRtupdateR
(tselftkeytmsgRRt	blocksizetipadtopad((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyt__init__s(

	

cCs|ii|ƒdS(s8Update this hashing object with the string msg.
        N(RR(RR((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyR?scCs@tdƒ}|i|_|iiƒ|_|iiƒ|_|S(syReturn a separate copy of this hashing object.

        An update to this copy won't affect the original object.
        R(RRRtcopyR(Rtother((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyRDs
cCs/|iiƒ}|i|iiƒƒ|iƒS(söReturn the hash value of this hashing object.

        This returns a string containing 8-bit data.  The object is
        not altered in any way by this function; you can continue
        updating the object after calling this function.
        (RRRRR(Rth((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyROscCsPdig}t|iƒƒD])}|titt|ƒƒddƒq~ƒS(sKLike digest(), but returns a string of hexadecimal digits instead.
        Ri(RttupleRtstringtzfillthexR(Rt_[1]R((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyt	hexdigestZs
N(	t__name__t
__module__t__doc__R
RRRRR'(((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyRs#			cCst|||ƒS(sVCreate a new hashing object and return it.

    key: The starting key for the hash.
    msg: if available, will immediately be hashed into the object's starting
    state.

    You can now feed arbitrary strings into the object using its update()
    method, and can ask for the hash value at any time by calling its digest()
    method.
    (R(RRR((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyR`s((R*t__revision__R#R
R
RRR(((s4/usr/lib/python2.6/site-packages/Crypto/Hash/HMAC.pyt<module>s	J

Youez - 2016 - github.com/yon3zu
LinuXploit