Uname: Linux server.digisquadtech.com 4.18.0-553.100.1.el8_10.x86_64 #1 SMP Mon Feb 2 04:13:33 EST 2026 x86_64
User: 1091 (madhavfluid)
Group: 1090 (madhavfluid)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//usr/lib64/python3.6///__pycache__      ( Reset | Go to )
File Name: hmac.cpython-36.opt-1.pyc
3
]i@sdZddlZddlmZddlZddlZddl    Z    e
dde dDZ e
dde dDZ dZGdd    d    Zd
d ZGd d d e    jZejreZdddZdS)zxHMAC (Keyed-Hashing for Message Authentication) Python module.

Implements the HMAC algorithm as described by RFC 2104.
N)_compare_digestccs|]}|dAVqdS)\N).0xrr/usr/lib64/python3.6/hmac.py    <genexpr> srccs|]}|dAVqdS)6Nr)rrrrrr sc@sReZdZdZdZdddZeddZdd    Zd
d Z    d d Z
ddZ ddZ dS)HMACz~RFC 2104 HMAC class.  Also complies with RFC 4231.

    This supports the API for Cryptographic Hash Functions (PEP 247).
    @Ncsftjrtdt|ttfs0tdt|jdkrLt    j
dt dt j tr\|_n,ttrxdfdd        |_ndfd
d        |_|j|_|j|_|jj|_t|jd r|jj}|d krt    j
d ||jftd|j}nt    j
d|jtd|j}||_t||kr|j|j}|j|d}|jj|jt|jj|jt|dk    rb|j|dS)a1Create 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.  *OR*
                   A hashlib constructor returning a new hash object. *OR*
                   A hash name suitable for hashlib.new().
                   Defaults to hashlib.md5.
                   Implicit default to hashlib.md5 is deprecated and will be
                   removed in Python 3.6.

        Note: key and msg must be a bytes or bytearray objects.
        z*This class is not available in FIPS mode. zUse hmac.new().z,key: expected bytes or bytearray, but got %rNz<HMAC() without an explicit digestmod argument is deprecated.cs tj|S)N)_hashlibnew)d)    digestmodrr<lambda>;szHMAC.__init__.<locals>.<lambda>cs
j|S)N)r)r)rrrr=s
block_sizez:block_size of %d seems too small; using our default of %d.z<No block_size attribute on given digest object; Assuming %d.z9This class is not available in FIPS mode. Use hmac.new().)r)r)_hashlibopenssl get_fips_mode
ValueError
isinstancebytes    bytearray    TypeErrortype__name__    _warningswarnPendingDeprecationWarningrZmd5callable digest_consstrouterinner digest_sizehasattrr    blocksizeRuntimeWarninglendigestljustupdate    translatetrans_5Ctrans_36)selfkeymsgrr*r)rr__init__sJ



 
 
z HMAC.__init__cCs d|jjS)Nzhmac-)r'name)r3rrrr7]sz    HMAC.namecCs tjrtd|jj|dS)z8Update this hashing object with the string msg.
        z'hmac.HMAC is not available in FIPS modeN)rrrr'r/)r3r5rrrr/asz HMAC.updatecCs:|jj|j}|j|_|j|_|jj|_|jj|_|S)zyReturn a separate copy of this hashing object.

        An update to this copy won't affect the original object.
        )    __class____new__r$r(r'copyr&)r3otherrrrr:hs   z    HMAC.copycCs|jj}|j|jj|S)zwReturn a hash object for the current state.

        To be used only internally with digest() and hexdigest().
        )r&r:r/r'r-)r3hrrr_currentus
z HMAC._currentcCs|j}|jS)zReturn 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.
        )r=r-)r3r<rrrr-~sz HMAC.digestcCs|j}|jS)zKLike digest(), but returns a string of hexadecimal digits instead.
        )r=    hexdigest)r3r<rrrr>szHMAC.hexdigest)NN) r
__module__ __qualname____doc__r*r6propertyr7r/r:r=r-r>rrrrr s
A      
r cCsX|dkrtdt|tr"|jSt|r2|d}t|tjsFtd|jjj    ddS)Nz.'digestmod' argument is mandatory in FIPS moderz6Only OpenSSL hashlib hashes are accepted in FIPS mode._-)
rrr%lowerr#rZHASHrr7replace)rrrr_get_openssl_names
 rGc@seZdZdddZdS) HMAC_opensslNcCsLt|ttfs tdt|jt|}tjj    |||d}|rH|j
||S)Nz,key: expected bytes or bytearray, but got %r)r) rrrrrrrG _hmacopensslr r9r/)clsr4r5rr7resultrrrr9s
zHMAC_openssl.__new__)NN)rr?r@r9rrrrrHsrHcCs t|||S)aVCreate 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 )r4r5rrrrrs r)NN)rAwarningsr     _operatorrZcompare_digestZhashlibrrrIrranger1r2r(r rGrHrrrrrr<module>s z 

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL