AlkantarClanX12

Your IP : 3.128.198.90


Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/hashlib.cpython-33.pyc

�
��f1c@s(dZdZee�Zee�ZedZd
d�Zdd
�Zdddd�Z	dddd�Z
y.ddlZe
ZeZ
ejej�ZWnek
r�e	ZeZ
YnXxVeD]NZye
e�e�e<Wq�ek
r
ddlZejde�Yq�Xq�W[[[
[	[
[dS(u9
hashlib module - A common interface to many hash functions.

new(name, data=b'') - returns a new hash object implementing the
                      given hash function; initializing the hash
                      using the given binary data.

Named constructor functions are also available, these are faster
than using new(name):

md5(), sha1(), sha224(), sha256(), sha384(), and sha512()

More algorithms may be available on your platform but the above are guaranteed
to exist.  See the algorithms_guaranteed and algorithms_available attributes
to find out what algorithm names can be passed to new().

NOTE: If you want the adler32 or crc32 hash functions they are available in
the zlib module.

Choose your hash function wisely.  Some have known collision weaknesses.
sha384 and sha512 will be slow on 32 bit platforms.

If the underlying implementation supports "FIPS mode", and this is enabled, it
may restrict the available hashes to only those that are compliant with FIPS
regulations.  For example, it may deny the use of MD5, on the grounds that this
is not secure for uses such as authentication, system integrity checking, or
digital signatures.   If you need to use such a hash for non-security purposes
(such as indexing into a data structure for speed), you can override the keyword
argument "usedforsecurity" from True to False to signify that your code is not
relying on the hash for security purposes, and this will allow the hash to be
usable even in FIPS mode.

Hash objects have these methods:
 - update(arg): Update the hash object with the bytes in arg. Repeated calls
                are equivalent to a single call with the concatenation of all
                the arguments.
 - digest():    Return the digest of the bytes passed to the update() method
                so far.
 - hexdigest(): Like digest() except the digest is returned as a unicode
                object of double length, containing only hexadecimal digits.
 - copy():      Return a copy (clone) of the hash object. This can be used to
                efficiently compute the digests of strings that share a common
                initial substring.

For example, to obtain the digest of the string 'Nobody inspects the
spammish repetition':

    >>> import hashlib
    >>> m = hashlib.md5()
    >>> m.update(b"Nobody inspects")
    >>> m.update(b" the spammish repetition")
    >>> m.digest()
    b'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'

More condensed:

    >>> hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest()
    'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'

umd5usha1usha224usha256usha384usha512unewualgorithms_guaranteedualgorithms_availablecCs
y�|dkr"ddl}|jS|dkrAddl}|jS|dkr�ddl}|d
d�}|dkr||jS|dkr�|jSnQ|dkr�ddl}|d
d�}|dkr�|jS|dkr�|j	SnWnt
k
r�YnXtd|��dS(NuSHA1usha1iuMD5umd5uSHA256usha256uSHA224usha224iu256u224uSHA512usha512uSHA384usha384u512u384uunsupported hash type (uSHA1usha1(uMD5umd5(uSHA256usha256uSHA224usha224(uSHA512usha512uSHA384usha384(u_sha1usha1u_md5umd5u_sha256usha256usha224u_sha512usha512usha384uImportErroru
ValueError(unameu_sha1u_md5u_sha256ubsu_sha512((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu__get_builtin_constructorLs0

u__get_builtin_constructorcCsJy(ttd|�}|dd�|SWnttfk
rE�YnXdS(Nuopenssl_uusedforsecurityF(ugetattru_hashlibuFalseuAttributeErroru
ValueError(unameuf((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu__get_openssl_constructorhs
u__get_openssl_constructorscCst|�|�S(unew(name, data=b'', usedforsecurity=True) - Return a new hashing object using
    the named algorithm; optionally initialized with data (which must be bytes).

    The 'usedforsecurity' keyword argument does nothing, and is for compatibilty
    with the OpenSSL implementation
    (u__get_builtin_constructor(unameudatauusedforsecurity((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu__py_newvsu__py_newcCs3ytj|||�SWntk
r.�YnXdS(unew(name, data=b'', usedforsecurity=True) - Return a new hashing object using
    the named algorithm; optionally initialized with data (which must be bytes).
    
    Override 'usedforsecurity' to False when using for non-security purposes in
    a FIPS environment
    N(u_hashlibunewu
ValueError(unameudatauusedforsecurity((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu
__hash_new�s
u
__hash_newiNucode for hash %s was not found.(umd5usha1usha224usha256usha384usha512(unewualgorithms_guaranteedualgorithms_availableT(u__doc__u__always_supportedusetualgorithms_guaranteedualgorithms_availableu__all__u__get_builtin_constructoru__get_openssl_constructoruTrueu__py_newu
__hash_newu_hashlibunewu
__get_hashuunionuopenssl_md_meth_namesuImportErroru__func_nameuglobalsu
ValueErroruloggingu	exception(((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu<module>?s4